:root {
    --start-dark: #17140f;
    --header-bg: #2f2820;
    --side-bg: #ddd8cc;
    --panel-card: #efebe3;
    --panel-line: #cfc8ba;
    --panel-ink: #2a2621;
    --panel-muted: #7a7266;
    --panel-gold: #b8862b;
    --gold-hi: #e3b24f;
    --gold-lo: #a87a1e;
    --error: #a8342a;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(201, 169, 90, 0.18), transparent 34rem),
        linear-gradient(180deg, #15110c 0%, #0b0907 100%);
    color: var(--panel-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.start-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.start-shell {
    width: min(468px, calc(100vw - 32px));
    height: 610px;
    display: flex;
    flex-direction: column;
    background: var(--side-bg);
    border: 2px solid #1e1b18;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.start-header {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 10px;
    color: #f0e6d2;
    font-size: 14px;
    font-weight: 800;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18)),
        url("/assets/ui/arkaplan/panel-ui.png") center / cover,
        var(--header-bg);
}

.start-header span {
    flex: 1;
}

.auth-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    position: relative;
    width: min(468px, calc(100vw - 32px));
    height: 610px;
    background: var(--side-bg);
    border: 2px solid #1e1b18;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.hero-band {
    position: relative;
    height: 230px;
    background: var(--start-dark);
    overflow: hidden;
}

.hero-band::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34px;
    background: linear-gradient(180deg, rgba(23, 20, 15, 0), var(--side-bg));
}

.hero-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.server-hero {
    height: 210px;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px 24px 6px;
}

.tab {
    height: 40px;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: var(--panel-card);
    color: var(--panel-ink);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--panel-line);
    border-bottom: 3px solid var(--panel-line);
    border-radius: 3px;
}

.tab:hover {
    background: #f6f2ea;
}

.tab.is-active {
    background: #3a3833;
    color: #f0e6d2;
    border-color: #1e1b18;
    border-bottom-color: var(--panel-gold);
}

.auth-form {
    padding: 8px 24px 0;
    min-height: 216px;
}

label {
    display: block;
}

label > span,
.remember span {
    display: block;
    color: #4a443c;
    font-size: 12px;
    font-weight: 700;
}

.auth-form > label,
.password-row {
    margin-bottom: 10px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input:not([type]) {
    width: 100%;
    height: 30px;
    border: 1px solid #a9a293;
    border-radius: 3px;
    background: #efebe2;
    color: #2f2b26;
    font-size: 13px;
    font-weight: 700;
    padding: 0 8px;
    outline: none;
}

input:focus {
    border-color: #8a6a3a;
    background: #f6f2ea;
}

.password-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.check-row input,
.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--panel-gold);
}

.check-row span {
    display: inline;
    color: var(--panel-ink);
    font-size: 11px;
    font-weight: 400;
}

.check-row button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #8a5a1e;
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
}

.remember span {
    color: #4a443c;
}

.game-button,
.gold-button,
.gold-link {
    --btn-border: #5e4412;
    --btn-top: #f2d68a;
    --btn-mid: var(--gold-hi);
    --btn-bottom: var(--gold-lo);
    --btn-shadow: #5e4412;
    --btn-text: #2a2016;
    position: relative;
    isolation: isolate;
    min-width: 150px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0 16px;
    border: 0;
    border-radius: 3px;
    color: var(--btn-text);
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    background: transparent;
    text-shadow: none;
}

.game-button::before,
.gold-button::before,
.gold-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    background: var(--btn-border);
    filter: drop-shadow(0 2px 0 var(--btn-shadow));
}

.game-button::after,
.gold-button::after,
.gold-link::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 42%),
        linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 45%, var(--btn-bottom) 100%);
}

.game-button:hover,
.gold-button:hover,
.gold-link:hover {
    filter: brightness(1.05);
}

.game-button:disabled,
.gold-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.game-button.small,
.gold-button.small {
    min-width: 140px;
    height: 34px;
}

.game-button.is-muted {
    --btn-border: #4f3e42;
    --btn-top: #958884;
    --btn-mid: #867672;
    --btn-bottom: #716360;
    --btn-shadow: #3f332f;
    --btn-text: #f8f2e7;
    min-width: 110px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

.game-button.is-steel {
    --btn-border: #385363;
    --btn-top: #7f9ca4;
    --btn-mid: #6e8991;
    --btn-bottom: #526e76;
    --btn-shadow: #344750;
    --btn-text: #f8f2e7;
    min-width: 110px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

.game-button.compact,
.gold-link.compact {
    height: 34px;
    min-width: 170px;
}

.form-error {
    min-height: 30px;
    margin: 8px 0 0;
    color: var(--error);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    visibility: hidden;
}

.form-error.is-visible {
    visibility: visible;
}

.link-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 38px;
    margin-top: 0;
    padding: 12px 24px 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-top: 1px solid #c4bdaf;
}

.link-button {
    height: 30px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 3px;
    align-items: stretch;
    text-decoration: none;
}

.link-icon,
.link-label {
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid #163f57;
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.link-label {
    min-width: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.link-icon::before,
.link-label::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto;
    height: 42%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
}

.link-icon::after {
    content: "";
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    background: center / contain no-repeat;
}

.link-label {
    z-index: 0;
}

.link-button.web .link-icon,
.link-button.web .link-label {
    border-color: #163f57;
    background: linear-gradient(180deg, #3289b4, #246488);
}

.link-button.web .link-icon {
    background: linear-gradient(180deg, #2b7198, #17435d);
}

.link-button.web .link-icon::after {
    background-image: url("/assets/ui/ikon/web.svg");
}

.link-button.community .link-icon,
.link-button.community .link-label {
    border-color: #1b4a2d;
    background: linear-gradient(180deg, #48a36b, #2f6e47);
}

.link-button.community .link-icon {
    background: linear-gradient(180deg, #347d50, #1b4a2d);
}

.link-button.community .link-icon::after {
    background-image: url("/assets/ui/ikon/topluluk.svg");
}

.link-button.discord .link-icon,
.link-button.discord .link-label {
    border-color: #2f3799;
    background: linear-gradient(180deg, #6b76ff, #4752c4);
}

.link-button.discord .link-icon {
    background: linear-gradient(180deg, #5865f2, #303aa5);
}

.link-button.discord .link-icon::after {
    background-image: url("/assets/ui/ikon/discord.svg");
    width: 20px;
    height: 20px;
}

.link-button.settings .link-icon,
.link-button.settings .link-label {
    border-color: #221f1b;
    background: linear-gradient(180deg, #686057, #433d36);
}

.link-button.settings .link-icon {
    background: linear-gradient(180deg, #5a5249, #2a2621);
}

.link-button.settings .link-icon::after {
    background-image: url("/assets/ui/baslik/ayarlar.png");
}

.link-button:hover {
    filter: brightness(1.08);
}

.version {
    position: absolute;
    right: 12px;
    bottom: 8px;
    padding: 0;
    color: var(--panel-muted);
    text-align: right;
    font-size: 10px;
    font-weight: 700;
}

.signed-panel {
    min-height: 376px;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
}

.signed-panel h1 {
    margin: 4px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    color: #2f2b26;
}

.signed-panel p {
    margin: 0;
    color: var(--panel-muted);
    font-size: 13px;
    line-height: 1.45;
}

.eyebrow {
    color: var(--panel-gold);
    font-size: 10px;
    font-weight: 800;
}

.legal-modal {
    width: min(420px, calc(100vw - 32px));
    border: 2px solid #1e1b18;
    border-radius: 8px;
    padding: 0;
    background: var(--side-bg);
    color: var(--panel-ink);
}

.legal-modal::backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.legal-modal article {
    padding: 16px;
}

.legal-modal h2 {
    margin: 0 0 12px;
    color: #2f2b26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.legal-modal div {
    max-height: 330px;
    overflow: auto;
    scrollbar-width: none;
    padding-right: 8px;
    color: var(--panel-ink);
    font-size: 12px;
    line-height: 1.45;
}

.legal-modal div::-webkit-scrollbar {
    display: none;
}

.legal-modal .game-button,
.legal-modal .gold-button {
    display: block;
    margin: 16px auto 0;
}

.placeholder-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.placeholder-panel {
    width: min(468px, calc(100vw - 32px));
    background: var(--side-bg);
    border: 2px solid #1e1b18;
    border-radius: 8px;
    padding: 22px;
    color: var(--panel-ink);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.placeholder-panel.wide {
    width: min(620px, calc(100vw - 32px));
}

.placeholder-panel h1 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    color: #2f2b26;
}

.placeholder-panel p {
    margin: 0 0 18px;
    color: var(--panel-muted);
    font-size: 13px;
    line-height: 1.45;
}

.server-body {
    flex: 1;
    overflow: auto;
    scrollbar-width: none;
    background: var(--side-bg);
    padding: 6px 0;
}

.server-body.in-auth {
    height: 346px;
    flex: none;
    padding: 10px 0;
}

.server-body::-webkit-scrollbar {
    display: none;
}

.server-list {
    display: grid;
    gap: 2px;
}

.server-card {
    position: relative;
    height: 158px;
    margin: 0 10px;
    overflow: hidden;
    color: #f2dda4;
    border: 1px solid #1e1b18;
    border-radius: 8px;
    text-decoration: none;
    background: var(--header-bg);
}

.server-card.is-guard-locked,
.game-button.is-guard-locked,
.game-button.is-disabled {
    filter: grayscale(0.55) brightness(0.72);
    cursor: not-allowed;
}

.server-bg,
.server-shade {
    position: absolute;
    inset: 0;
}

.server-bg {
    background: url("/assets/ui/giris/acilis.webp") center 58% / cover no-repeat;
}

.server-shade {
    background:
        linear-gradient(90deg, rgba(10, 8, 6, 0.9), rgba(10, 8, 6, 0.62) 55%, rgba(10, 8, 6, 0.24)),
        radial-gradient(circle at 18% 30%, rgba(242, 193, 78, 0.22), transparent 42%);
}

.server-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr;
    padding: 16px 16px 0;
}

.server-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.75);
}

.server-pills {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.server-pills em {
    display: inline-grid;
    place-items: center;
    height: 17px;
    padding: 0 10px;
    border-radius: 9px;
    color: #e6dcc8;
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
}

.server-pills .online {
    color: #0f2a14;
    background: #6bd37e;
}

.server-band {
    align-self: end;
    height: 58px;
    margin: 0 -16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(8, 6, 5, 0.82);
    border-top: 1px solid rgba(201, 169, 90, 0.43);
}

.server-band span {
    display: grid;
    place-items: center;
    gap: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.server-band span:first-child {
    border-left: 0;
}

.server-band b {
    color: #9a9285;
    font-size: 9px;
    letter-spacing: 1px;
}

.server-band i {
    color: #e9e1cf;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
}

.start-footer {
    height: 54px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #cfc9bc;
    border-top: 1px solid #b9b2a5;
}

.start-footer.auth-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.flat-link {
    height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    color: #5f564a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #b9b2a5;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.24);
}

.flat-button {
    height: 34px;
    display: inline-grid;
    place-items: center;
    min-width: 110px;
    padding: 0 12px;
    color: #5f564a;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #b9b2a5;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.character-body {
    height: 346px;
    padding: 12px 18px;
    overflow: hidden;
}

.character-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--panel-line);
    padding-bottom: 8px;
}

.character-title strong {
    font-family: Georgia, "Times New Roman", serif;
    color: #2f2b26;
    font-size: 20px;
}

.character-title span {
    color: var(--panel-muted);
    font-size: 11px;
    font-weight: 800;
}

.character-list {
    display: grid;
    gap: 7px;
}

.character-card {
    height: 72px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #f2dda4;
    text-decoration: none;
    border: 1px solid #1e1b18;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(10, 8, 6, 0.92), rgba(10, 8, 6, 0.68)),
        url("/assets/ui/giris/acilis.webp") center 45% / cover;
}

.character-card.is-selected {
    border-color: #e3b24f;
    box-shadow: inset 0 0 0 1px rgba(227, 178, 79, 0.55), 0 0 0 1px rgba(80, 56, 18, 0.75);
}

.character-card.empty {
    color: #2f2b26;
    border: 1px dashed #c9a95a;
    background: rgba(24, 20, 16, 0.08);
}

.character-card strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.character-card em,
.character-card b {
    color: #b5ac98;
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
}

.class-icon,
.plus-ring {
    width: 42px;
    height: 42px;
    border: 1px solid #e3b24f;
    border-radius: 5px;
    background: rgba(20, 16, 12, 0.86) center / 28px 28px no-repeat;
}

.class-icon.warrior {
    background-image: url("/assets/ui/sinif/warrior.png");
}

.class-icon.rogue {
    background-image: url("/assets/ui/sinif/okcu.png");
}

.class-icon.mage {
    background-image: url("/assets/ui/sinif/mage.png");
}

.plus-ring {
    position: relative;
    border-radius: 50%;
    background: transparent;
}

.plus-ring::before,
.plus-ring::after {
    content: "";
    position: absolute;
    inset: 19px 10px auto;
    height: 2px;
    background: #e3b24f;
}

.plus-ring::after {
    transform: rotate(90deg);
}

.page-note {
    margin: 18px 0 0;
    color: var(--panel-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.create-form {
    display: grid;
    gap: 8px;
}

.create-label {
    color: #4a443c;
    font-size: 12px;
    font-weight: 800;
}

.choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.class-choice-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-button {
    min-width: 0;
}

.choice-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-button span {
    height: 40px;
    display: grid;
    place-items: center;
    grid-auto-flow: column;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    color: var(--panel-ink);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--panel-line);
    border-bottom: 3px solid var(--panel-line);
    border-radius: 3px;
    background: var(--panel-card);
    cursor: pointer;
}

.choice-button span:hover {
    background: #f6f2ea;
}

.choice-button input:checked + span {
    color: #f0e6d2;
    border-color: #1e1b18;
    border-bottom-color: var(--choice-accent, var(--panel-gold));
    background: #3a3833;
}

.choice-button .class-icon {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-size: contain;
}

.confirm-modal {
    width: min(240px, calc(100vw - 24px));
    border: 1px solid #f3ead8;
    border-radius: 5px;
    padding: 0;
    background: var(--side-bg);
    color: var(--panel-ink);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

.confirm-modal::backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.confirm-modal header {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px 0 8px;
    color: #f7f0df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 1px 0 #000;
    background: #5b574d;
    border-bottom: 1px solid #1f1c18;
}

.confirm-modal header span {
    flex: 1;
}

.confirm-modal header button {
    position: relative;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.confirm-modal header button::before,
.confirm-modal header button::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 10px;
    height: 2px;
    background: #f4efe5;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

.confirm-modal header button::before {
    transform: rotate(45deg);
}

.confirm-modal header button::after {
    transform: rotate(-45deg);
}

.confirm-modal p {
    margin: 0;
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 12px 16px;
    color: #5d5a55;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
}

.confirm-modal div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 14px 34px;
}

.confirm-modal .game-button {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
}

.game-page {
    overflow: hidden;
    background: #090806;
    user-select: none;
}

.game-stage {
    width: 100vw;
    height: 100vh;
    min-height: 560px;
    padding: 0;
}

.settings-hide-chat .ko-chat-zone {
    display: none !important;
}

.settings-hide-info .ko-server-cards,
.settings-hide-info .ko-top-right-wrap {
    display: none !important;
}

.settings-hide-mini .ko-bottom-menu,
.settings-hide-mini .game-nav {
    display: none !important;
}

.settings-muted-damage-font .ko-log-msg.is-damage-deal,
.settings-muted-damage-font .ko-log-msg.is-damage-take {
    color: #e0d5c1;
    font-weight: 700;
}

.game-world {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #090806;
    box-shadow: none;
}

.game-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.player-sprite,
.player-shadow,
.player-name {
    position: absolute;
    pointer-events: none;
    left: 50%;
    top: 50%;
}

.player-sprite {
    z-index: 8;
    /* Boyut game.js tarafından sabit ölçekle verilir; sınıfın tüm kareleri aynı yükseklikte tuvale hizalı */
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    image-rendering: auto;
    filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.55));
    transform: translate(-50%, -88%);
}

.player-shadow {
    z-index: 6;
    width: 64px;
    height: 20px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    filter: blur(2px);
}

.player-name {
    z-index: 40;
    min-width: 80px;
    transform: translate(-50%, -100%);
    padding: 2px 7px;
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    text-shadow: 0 1px 0 #000, 0 0 5px rgba(0, 0, 0, 0.9);
}

.player-name .player-clan {
    display: block;
    color: #ff3b3b;
}

.player-name .player-clan:empty {
    display: none;
}

.ko3d-market-preview {
    position: absolute;
    z-index: 41;
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid #6e4b31;
    background: rgba(12, 9, 7, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
    white-space: nowrap;
}
.ko3d-market-preview[hidden] { display: none !important; }

.ko3d-market-slot {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 2px solid var(--market-tier, #745b42);
    background: radial-gradient(circle at 50% 40%, var(--market-tier-light, #241912) 0%, var(--market-tier-dark, #090705) 78%);
    box-shadow: inset 0 0 6px color-mix(in srgb, var(--market-tier, #745b42) 45%, transparent), 0 0 3px rgba(0, 0, 0, 0.9);
}

.ko3d-market-slot .item-effect-container { border-radius: 0 !important; }

.ko3d-market-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

.ko3d-market-plus,
.ko3d-market-count {
    position: absolute;
    bottom: 0;
    color: #fff4c8;
    font: 900 9px/1 Arial, sans-serif;
    text-shadow: 1px 1px 1px #000, -1px -1px 1px #000;
}

.ko3d-market-plus { top: 1px; bottom: auto; left: 2px; }
.ko3d-market-count { right: 2px; }

/* GM ve boss etiketleri aynı tipografi ve nefes alan parıltı efektini paylaşır. */
.player-name .player-gm,
.mob-name .mob-boss-tag {
    display: block;
    font-weight: 900;
    letter-spacing: 0.6px;
    line-height: 1.25;
    animation: player-gm-breathe 2.6s ease-in-out infinite;
}

.player-name .player-gm {
    --gm-tag-color: #b566f5;
    --gm-tag-color-bright: #e3b8ff;
    --gm-tag-glow: rgba(157, 78, 221, 0.55);
    --gm-tag-glow-bright: rgba(199, 125, 255, 0.95);
    --gm-tag-halo: rgba(157, 78, 221, 0.7);
}

.mob-name .mob-boss-tag {
    --gm-tag-color: #c41424;
    --gm-tag-color-bright: #ff5660;
    --gm-tag-glow: rgba(180, 0, 18, 0.7);
    --gm-tag-glow-bright: rgba(255, 38, 52, 0.95);
    --gm-tag-halo: rgba(210, 0, 25, 0.8);
    font-size: 11px;
}

@keyframes player-gm-breathe {
    0%, 100% { color: var(--gm-tag-color); text-shadow: 0 1px 0 #000, 0 0 3px var(--gm-tag-glow); }
    50% { color: var(--gm-tag-color-bright); text-shadow: 0 1px 0 #000, 0 0 8px var(--gm-tag-glow-bright), 0 0 16px var(--gm-tag-halo); }
}

.player-name .player-level {
    margin-right: 4px;
    color: #7ddc7d;
    font-weight: 400;
}

/* Lider çizgisi seviye metninden karakter adının sonuna kadar uzanır. */
.player-name .player-identity-line {
    position: relative;
    display: inline-block;
}

.player-name.is-clan-leader .player-identity-line {
    padding-bottom: 2px;
}

.player-name.is-clan-leader .player-identity-line::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, #6f4813 0%, #d49a2c 22%, #fff0a3 48%, #b87817 72%, #6f4813 100%);
    background-size: 240% 100%;
    box-shadow: 0 0 2px rgba(255, 217, 120, 0.38);
    animation: clan-leader-line-flow 2.2s linear infinite;
}

@keyframes clan-leader-line-flow {
    from { background-position: 100% 0; }
    to { background-position: -140% 0; }
}

.game-nav {
    position: absolute;
    z-index: 30;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    width: auto;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.game-nav-item {
    width: 46px;
    height: 48px;
    display: grid;
    grid-template-rows: 32px 14px;
    place-items: center;
    padding: 0;
    border: 0;
    color: #d6cab4;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 1px 0 #000;
}

/* ========================================================
   KNIGHT ONLINE SADE CHAT & NEARBY PLAYERS ZONE
   ======================================================== */
.ko-chat-zone {
    position: absolute;
    z-index: 28;
    left: 8px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: auto;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

.ko-gm-admin-entry {
    position: absolute;
    left: 0;
    bottom: 100%;
    z-index: 35;
    width: 68px;
    height: 68px;
    margin-bottom: 6px;
    display: grid;
    place-items: center;
    pointer-events: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ko-gm-admin-entry img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.ko-gm-admin-entry:hover img { filter: brightness(1.15); }

.ko-gm-tools-panel[hidden] { display: none; }

.settings-panel.ko-gm-tools-panel {
    width: min(520px, calc(100vw - 24px));
    height: min(350px, calc(100vh - 24px));
}

.ko-gm-tools-layout {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 6px;
    flex: 1;
    min-height: 0;
    padding: 8px;
    box-sizing: border-box;
}

.ko-gm-tools-layout .settings-side-tabs {
    padding-top: 0;
}

.ko-gm-tools-layout .settings-main {
    min-height: 0;
}

[data-gm-hide-target].is-gm-ui-hidden {
    visibility: hidden !important;
    pointer-events: none !important;
}
body.gm-hide-character-level .player-level,
body.gm-hide-character-icon .player-rookie,
body.gm-hide-character-gm .player-gm {
    visibility: hidden !important;
    pointer-events: none !important;
}
body.gm-hide-character-clan .player-clan { display: none !important; }
body.gm-hide-character-clan .player-name.is-clan-leader .player-identity-line::after { display: none !important; }
.ko-gm-ui-main h2 {
    margin: 0 0 8px;
    padding: 0 4px 5px;
    color: #e5d4c4;
    border-bottom: 1px solid #493832;
    font: 700 11px Georgia, 'Times New Roman', serif;
    letter-spacing: 0.4px;
}
.settings-main.ko-gm-ui-main {
    justify-content: flex-start;
    gap: 10px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.settings-main.ko-gm-ui-main[hidden] { display: none !important; }
.settings-main.ko-gm-ui-main::-webkit-scrollbar { display: none !important; width: 0 !important; }
.ko-gm-ui-section { flex: 0 0 auto; }
.settings-options-grid.ko-gm-ui-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}
.ko-gm-ui-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}
.ko-gm-ui-options input {
    flex: 0 0 auto;
}

.ko-gm-mob-main {
    gap: 8px !important;
}

.ko-gm-mob-map {
    padding: 7px 8px 9px;
    border: 1px solid #332722;
    background: linear-gradient(180deg, rgba(31,22,18,0.72), rgba(12,9,8,0.72));
    box-shadow: inset 0 0 8px rgba(0,0,0,0.52);
}

.ko-gm-mob-map h2 {
    color: #efc9ae;
}

.ko-gm-mob-map .ko-gm-ui-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}

.ko-gm-mob-map .ko-gm-ui-options label {
    white-space: normal;
    line-height: 1.25;
}

.ko-gm-mob-boss {
    color: #e0816f;
    font-size: 9px;
    letter-spacing: 0.35px;
}

.ko-gm-commands-main {
    gap: 8px !important;
}

.ko-gm-command-note {
    margin: 0;
    padding: 7px 9px;
    color: #d3c2b4;
    border: 1px solid #49352d;
    background: rgba(43, 27, 21, 0.72);
    font-size: 10px;
    line-height: 1.4;
}

.ko-gm-command-section {
    padding: 7px 8px 9px;
    border: 1px solid #332722;
    background: linear-gradient(180deg, rgba(31,22,18,0.72), rgba(12,9,8,0.72));
    box-shadow: inset 0 0 8px rgba(0,0,0,0.52);
}

.ko-gm-command-section h2 {
    color: #efc9ae;
}

.ko-gm-command-list {
    display: grid;
    gap: 5px;
}

.ko-gm-command-row {
    display: grid;
    grid-template-columns: minmax(132px, 0.8fr) minmax(0, 1.4fr);
    gap: 9px;
    align-items: start;
    padding: 6px 7px;
    border: 1px solid #3f302a;
    background: rgba(8, 6, 5, 0.62);
}

.ko-gm-command-row code {
    color: #f0a986;
    font: 700 10px Consolas, 'Courier New', monospace;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ko-gm-command-row span {
    color: #c9bdb3;
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 560px) {
    .ko-gm-tools-panel { height: min(300px, calc(100vh - 24px)); }
    .ko-gm-tools-layout { grid-template-columns: 108px minmax(0, 1fr); }
    .ko-gm-command-row { grid-template-columns: 1fr; gap: 3px; }
}

/* 1. SATIR: OYUNCU LİSTESİ VE CHAT KUTUSU */
.ko-chat-boxes-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 130px;
}

/* SOL: YAKINLARDAKİ OYUNCULAR KUTUSU */
.ko-nearby-box {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    height: 130px;
    display: flex;
    background: rgba(14, 12, 10, 0.78);
    border: 1px solid #2b251e;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    box-sizing: border-box;
}

.ko-nearby-bar {
    width: 18px;
    background: #191613;
    border-right: 1px solid #2b251e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 0;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
}

.ko-bar-btn.is-a {
    width: 14px;
    height: 14px;
    background: #3e1e1a;
    border: 1px solid #78352a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.ko-bar-btn.is-eye {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8dcc0;
    border: 1px solid #4a3e2a;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.5);
    flex-shrink: 0;
    margin-bottom: 2px;
}

.ko-scroll-arrow {
    width: 14px;
    height: 12px;
    color: #e3b24f;
    font-size: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.1s;
}

.ko-scroll-arrow:hover {
    color: #ffffff;
}

.ko-scroll-arrow:active {
    transform: translateY(1px);
}

.ko-scroll-track {
    flex: 1;
    width: 6px;
    background: #0c0b09;
    border: 1px solid #2b251e;
    border-radius: 2px;
    margin: 2px 0;
    position: relative;
    cursor: pointer;
    min-height: 40px;
}

.ko-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 18px;
    height: 28px;
    background: linear-gradient(180deg, #f2c14e 0%, #b8862b 100%);
    border-radius: 2px;
    cursor: grab;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.1s;
}

.ko-scroll-thumb:hover {
    background: linear-gradient(180deg, #ffe082 0%, #d49a33 100%);
}

.ko-scroll-thumb:active {
    cursor: grabbing;
}

.ko-bar-btn.is-orb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7be5ff, #0b74a8);
    border: 1px solid #06405c;
    box-shadow: 0 0 4px #0b74a8;
    flex-shrink: 0;
    margin-top: 2px;
}

.ko-nearby-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.ko-nearby-list {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: none;
}

.ko-nearby-list::-webkit-scrollbar {
    display: none !important;
}

.ko-nearby-item {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 21px;
    padding: 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.1s;
    box-sizing: border-box;
}

.ko-nearby-item:last-child {
    border-bottom: none;
}

.ko-nearby-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ko-nearby-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ko-nearby-dot.is-green {
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.ko-nearby-dot.is-blue {
    background: #00a2ff;
    box-shadow: 0 0 5px #00a2ff;
}

.ko-nearby-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #d0c8b8;
    flex-shrink: 0;
}

.ko-nearby-icon img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.ko-nearby-name {
    font-size: 11px;
    font-weight: 700;
    color: #8ba3e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 1px #000;
}

.ko-nearby-name.is-self {
    color: #e6c229;
}

.ko-nearby-pager {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0e0c0a;
    border-top: 1px solid #2b251e;
    font-size: 10px;
    font-weight: 900;
    color: #e0e0e0;
    flex-shrink: 0;
}

.ko-pager-btn {
    background: transparent;
    border: none;
    color: #e3b24f;
    font-size: 9px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ko-pager-btn:hover {
    color: #ffffff;
}

/* SAĞ: CHAT KUTUSU (LOG GİBİ DIŞ BORDER + SCROLLBAR) */
.ko-chat-box {
    width: 290px;
    min-width: 250px;
    max-width: min(290px, calc(100vw - 170px));
    height: 130px;
    display: flex;
    background: rgba(14, 12, 10, 0.78);
    border: 1px solid #2b251e;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.ko-chat-flow {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.ko-chat-lines {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 15px;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
}

.ko-chat-lines::-webkit-scrollbar {
    display: none !important;
}

.ko-chat-msg {
    margin: 0;
    min-width: 0;
    min-height: 15px;
    height: auto;
    flex: 0 0 auto;
    word-break: break-word;
    line-height: 15px;
    white-space: normal;
    overflow-wrap: anywhere;


}

.ko-chat-msg.is-upgrade {
    padding: 2px 0;
    line-height: 16px;
}

.ko-chat-msg.is-upgrade-success {
    color: #ffffff;
}

.ko-chat-msg.is-upgrade-fail {
    color: #ff4444;
}

.ko-chat-msg.is-join {
    color: #00ff00;
}

.ko-chat-msg.is-normal,
.ko-chat-msg.is-normal .msg-author {
    color: #ffffff;
}

.ko-chat-msg.is-notice {
    color: #ffff00;
}

.ko-chat-msg.is-obtained {
    color: #ffff00;
}

.ko-chat-msg.is-obtained .msg-author {
    color: #ffff00 !important;
}

.ko-chat-msg.is-obtained .msg-action {
    color: #ffff00 !important;
}

.ko-chat-msg.is-obtained .msg-item {
    font-weight: 700;
}

.ko-chat-msg.is-loot {
    color: #e2e2e2;
}

.ko-chat-msg.is-system {
    color: #ffb84d;
}

.ko-chat-msg.is-shout,
.ko-chat-msg.is-shout .msg-author {
    color: #d49b6a;
}

.ko-chat-msg.is-clan,
.ko-chat-msg.is-clan .msg-author {
    color: #71d98a;
}

.ko-chat-msg.is-party,
.ko-chat-msg.is-party .msg-author {
    color: #38b6ff;
}

.ko-chat-bar {
    width: 18px;
    background: #191613;
    border-left: 1px solid #2b251e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 0;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
}

/* 2. SATIR: HİZALI SEKME SATIRI */
.ko-chat-tabs-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 18px;
}

.ko-player-tabs-group {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.ko-player-tabs-group .ko-tab-btn {
    flex: 1;
    height: 18px;
    padding: 0;
    text-align: center;
}

.ko-channel-tabs-group {
    width: 290px;
    min-width: 250px;
    max-width: min(290px, calc(100vw - 170px));
    display: flex;
    align-items: center;
    gap: 2px;
}

.ko-channel-tabs-group .ko-tab-btn {
    flex: 1;
    height: 18px;
    padding: 0 3px;
    text-align: center;
}

/* 3. SATIR: LOCATION (150px) VE CHAT (290px) ALTINDAKİ HIZLI MENÜ SATIRI */
.ko-chat-bottom-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.ko-location-menu {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
}

.ko-left-menu {
    width: 290px;
    min-width: 250px;
    max-width: min(290px, calc(100vw - 170px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
}

/* MESAJ YAZMA FORMU (SEKMELERİN HEMEN ÜSTÜNDE, SADE VE ŞEFFAF) */
.ko-chat-input-form {
    width: 100%;
    height: 22px;
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: 2px;
}

.ko-chat-input-form input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    padding: 0 4px;
    outline: none;
    text-shadow: 1px 1px 1px #000;
    box-sizing: border-box;
}

.ko-chat-input-form input:focus {
    background: rgba(0, 0, 0, 0.65);
}

.ko-tab-btn {
    height: 18px;
    background: linear-gradient(180deg, #242220 0%, #100f0d 100%);
    border: 1px solid #363028;
    border-radius: 2px;
    color: #a89f91;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.12s ease;
    box-sizing: border-box;
    line-height: 16px;
    text-shadow: 1px 1px 1px #000;
}

.ko-tab-btn:hover {
    background: linear-gradient(180deg, rgba(48, 42, 36, 0.95) 0%, rgba(22, 19, 16, 0.98) 100%);
    color: #ffd978;
    border-color: #5c4e3a;
}

.ko-tab-btn:disabled,
.ko-tab-btn[aria-disabled="true"] {
    color: #5e5850;
    border-color: #28241f;
    background: linear-gradient(180deg, #171614 0%, #0b0a09 100%);
    box-shadow: none;
    text-shadow: none;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.ko-tab-btn:disabled:hover,
.ko-tab-btn[aria-disabled="true"]:hover {
    color: #5e5850;
    border-color: #28241f;
    background: linear-gradient(180deg, #171614 0%, #0b0a09 100%);
}

.ko-tab-btn.is-active,
.ko-tab-btn.is-active.is-loc,
.ko-tab-btn.is-active:not(.is-loc) {
    color: #ffd978;
    border: 1px solid #8c6f3d;
    background: linear-gradient(180deg, #362919 0%, #1a140b 100%);
    box-shadow: inset 0 0 5px rgba(255, 217, 120, 0.35);
    text-shadow: 0 0 4px rgba(255, 217, 120, 0.4), 1px 1px 1px #000;
}

/* ========================================================
   SOL ÜST: KNIGHT ONLINE KARAKTER HUD (HP / MP / KOORDİNAT)
   ======================================================== */
.ko-player-hud {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 28;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    user-select: none;
    pointer-events: auto;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75));
}

.ko-hud-name {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 1px 2px #000;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ko-hud-frame-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    width: 260px;
    padding: 5px;
    background: linear-gradient(180deg, rgba(29, 28, 26, 0.94), rgba(7, 7, 7, 0.94));
    border: 1px solid #4b4030;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.08), 0 4px 12px rgba(0, 0, 0, 0.8);
}

.ko-hud-class-box {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, #2f2d2a, #080706 78%);
    border: 1px solid #6a5738;
    box-shadow: inset 0 0 10px #000;
}

.ko-hud-class-box img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ko-hud-bars-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #060809;
    border: 1px solid #5a4f35;
    box-shadow: inset 0 0 4px #000, 0 1px 4px rgba(0, 0, 0, 0.85);
    padding: 1px;
    position: relative;
    border-radius: 1px;
}

.ko-hud-name-row {
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 5px;
    color: #f4ead0;
    font-size: 11px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
    background: linear-gradient(180deg, #2a261f, #11100e);
}

.ko-hud-name-row b {
    color: #6cff72;
    font-size: 10px;
}

.ko-hud-bar-row {
    position: relative;
    height: 12px;
    background: #111417;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1px;
}

.ko-hud-bar-row.is-hp .ko-hud-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, #db2424 0%, #ab1111 48%, #780808 100%);
    box-shadow: inset 0 1px 0 rgba(255, 195, 195, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    transition: width 0.25s ease-out;
}

.ko-hud-bar-row.is-mp .ko-hud-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, #2b61ff 0%, #153ec7 48%, #092384 100%);
    box-shadow: inset 0 1px 0 rgba(185, 215, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    transition: width 0.25s ease-out;
}

.ko-hud-bar-row.is-exp .ko-hud-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, #e4b338 0%, #b87813 52%, #6d4208 100%);
    box-shadow: inset 0 1px 0 rgba(255, 235, 168, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    transition: width 0.25s ease-out;
}

.ko-hud-bar-text {
    position: relative;
    z-index: 3;
    font-family: 'Consolas', 'Lucida Console', Monaco, monospace;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 1px 2px #000;
    letter-spacing: 0.5px;
    line-height: 1;
    pointer-events: none;
}


/* ========================================================
   SOL ORTA: KNIGHT ONLINE DİKEY SKILL BAR (YETENEK & POT ÇUBUĞU)
   ======================================================== */
.ko-skill-bar {
    position: absolute;
    left: 8px;
    top: calc(50% - 60px);
    transform: translateY(-50%);
    z-index: 28;
    width: 40px;
    background: linear-gradient(180deg, #25201b 0%, #1a1612 35%, #100d0b 100%);
    border: 1px solid #4a3e2c;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 217, 120, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 3px 5px;
    user-select: none;
    pointer-events: auto;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
}

.ko-sb-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.ko-sb-page-ctrl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 34px;
    height: 15px;
    background: #0f0d0a;
    border: 1px solid #3d3325;
    border-radius: 2px;
    padding: 0 1px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ko-sb-page-arrow {
    width: 9px;
    height: 13px;
    font-size: 7px;
    color: #bfa780;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.1s ease;
}

.ko-sb-page-arrow:hover {
    color: #ffd978;
}

.ko-sb-page-num {
    width: 12px;
    height: 12px;
    background: #1c1813;
    border: 1px solid #2d251a;
    color: #ffd978;
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1px;
    line-height: 1;
    text-shadow: 0 0 2px rgba(255, 217, 120, 0.6);
}

.ko-sb-slots {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    align-items: center;
}

.ko-sb-slot {
    width: 34px;
    height: 34px;
    position: relative;
    background: radial-gradient(circle at 50% 30%, #1e1a15 0%, #0b0907 100%);
    border: 1px solid #3d3325;
    border-radius: 3px;
    box-shadow: inset 0 0 6px #000, 0 1px 2px rgba(0, 0, 0, 0.5);
    cursor: grab;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    box-sizing: border-box;
}

.ko-sb-slot:hover {
    border-color: #8c6f3d;
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.4), 0 0 6px rgba(255, 217, 120, 0.35);
    z-index: 2;
}

.ko-sb-slot:active,
.ko-sb-slot.is-active {
    transform: scale(0.93);
    border-color: #ffd978;
    box-shadow: inset 0 0 0 1px #ffffff, 0 0 8px rgba(255, 217, 120, 0.7);
}

.ko-sb-slot.is-dragging {
    opacity: 0.35;
    border: 1px dashed #ffd978;
    cursor: grabbing;
}

.ko-sb-slot.is-drop-target {
    border-color: #7be5ff !important;
    box-shadow: 0 0 10px rgba(123, 229, 255, 0.85), inset 0 0 8px rgba(123, 229, 255, 0.5) !important;
    transform: scale(1.05);
    z-index: 5;
}

.ko-sb-slot.is-empty {
    cursor: default;
}

.ko-sb-slot.is-empty .ko-sb-icon,
.ko-sb-slot.is-empty .ko-sb-count {
    display: none;
}

.ko-whisper-stack {
    width: 336px;
    margin-left: 154px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.ko-whisper-card {
    position: relative;
    width: 118px;
    height: 15px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(76, 106, 102, 0.92), rgba(26, 36, 35, 0.94));
    box-shadow: inset 0 0 0 1px rgba(205, 220, 188, 0.28), 1px 1px 2px rgba(0, 0, 0, 0.75);
    color: #dff7ee;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    text-shadow: 1px 1px 1px #000;
}

.ko-whisper-card.has-new {
    color: #fff48d;
}

.ko-whisper-card b {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ko-whisper-card button {
    width: 16px;
    height: 13px;
    margin-right: 1px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #d9d0a0;
    font-size: 9px;
    line-height: 13px;
    cursor: pointer;
}

.ko-whisper-panel {
    width: 336px;
    height: 122px;
    background: rgba(10, 8, 6, 0.93);
    box-shadow: inset 0 0 0 1px #2b251e, 0 5px 16px rgba(0, 0, 0, 0.7);
}

.ko-whisper-panel[hidden] {
    display: none;
}

.ko-whisper-panel header {
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px 0 6px;
    background: #191613;
    color: #ffd978;
    font-size: 10px;
    font-weight: 800;
}

.ko-whisper-actions {
    display: flex;
    gap: 3px;
    font-style: normal;
}

.ko-whisper-panel header [data-whisper-min] {
    display: grid;
    place-items: center;
    background: rgba(60, 54, 44, 0.9);
}

/* Aşağı al çizgisi: kutunun tam ortasında */
.ko-whisper-panel header [data-whisper-min] i {
    display: block;
    width: 7px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
}

.ko-whisper-panel header button {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: rgba(80, 18, 14, 0.75);
    color: #fff;
    line-height: 14px;
    cursor: pointer;
}

.ko-whisper-lines {
    height: 78px;
    padding: 4px 0;
    overflow-y: auto;
    color: #d8cfbe;
    font-size: 10px;
    line-height: 1.35;
    box-sizing: border-box;
}

.ko-whisper-msg span {
    color: #7fdfff;
    font-weight: 800;
}

.ko-whisper-msg.is-system {
    color: #ff8a75;
}

.ko-whisper-panel form {
    height: 27px;
    padding: 3px 5px;
    box-sizing: border-box;
}

.ko-whisper-panel input {
    width: 100%;
    height: 19px;
    border: 1px solid #2b251e;
    background: #060504;
    color: #d8cfbe;
    font-size: 10px;
    outline: none;
    box-sizing: border-box;
}

.ko-skill-bar.is-locked .ko-sb-slot {
    opacity: 0.42;
    filter: grayscale(0.8) brightness(0.65);
    cursor: not-allowed;
}

.ko-skill-bar.is-locked .ko-sb-slot:hover,
.ko-skill-bar.is-locked .ko-sb-slot.is-active {
    transform: none;
    border-color: #3d3325;
    box-shadow: inset 0 0 6px #000, 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ko-sb-key {
    position: absolute;
    top: 1px;
    left: 2px;
    z-index: 4;
    font-family: Tahoma, 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 900;
    color: #ffd978;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 1px 2px #000;
    line-height: 1;
    pointer-events: none;
}

.ko-sb-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    pointer-events: none;
    image-rendering: auto;
}

.ko-sb-count {
    position: absolute;
    bottom: 1px;
    right: 2px;
    z-index: 4;
    font-family: 'Consolas', 'Lucida Console', Monaco, monospace;
    font-size: 9px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 2px;
    padding: 0 2px;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    line-height: 1.1;
    pointer-events: none;
}

/* Floating Drag Ghost for Skill Bar */
.ko-sb-drag-ghost {
    position: fixed;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    background: rgba(18, 15, 13, 0.9);
    border: 1.5px solid #ffd978;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 217, 120, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ko-sb-drag-ghost img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================================
   SAĞ ÜST: SUNUCU & KLAN BİLGİ KARTLARI (GENEL ARAYÜZLE UYUMLU KO STİLİ)
   ======================================================== */
.ko-top-right-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 28;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    pointer-events: auto;
}

.ko-event-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
    transition: filter 0.15s, transform 0.15s;
}
.ko-event-icon-btn:hover {
    filter: drop-shadow(0 0 6px rgba(255,200,60,0.85)) brightness(1.15);
    transform: scale(1.06);
}
.ko-event-icon-btn img {
    width: 72px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Event logosunu sola taşır; eski komşu alanı DB bağlantılı sosyal ikonlar doldurur. */
.ko-hud-socials {
    width: 110px;
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(4, 24px);
    grid-auto-rows: 24px;
    align-content: center;
    justify-content: center;
    gap: 4px;
    padding: 3px;
    margin-top: 1px;
    border: 1px solid rgba(92, 65, 53, .72);
    background: linear-gradient(180deg, rgba(20, 15, 13, .96), rgba(8, 7, 6, .94));
    box-shadow: inset 0 0 0 1px rgba(255, 214, 132, .03), 0 3px 12px rgba(0, 0, 0, .48);
}

.ko-hud-social-btn {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    background: #15110f;
    transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.ko-hud-social-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ko-hud-social-btn:hover { transform: translateY(-1px); filter: brightness(1.18); }
.ko-hud-social-btn.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcaf45); }
.ko-hud-social-btn.tiktok { background: #050505; box-shadow: inset 2px 0 #25f4ee, inset -2px 0 #fe2c55; }
.ko-hud-social-btn.youtube { background: #f00000; }
.ko-hud-social-btn.x { background: #050505; }
.ko-hud-social-btn.telegram { background: #229ed9; }
.ko-hud-social-btn.discord { background: #5865f2; }
.ko-hud-social-btn.whatsapp { background: #25a95b; }
.ko-hud-social-btn.is-disabled {
    filter: grayscale(.82);
    opacity: .38;
    cursor: not-allowed;
}
.ko-hud-social-btn.is-disabled:hover { transform: none; filter: grayscale(.82); }

@media (max-width: 1180px) {
    .ko-hud-socials {
        width: 92px;
        grid-template-columns: repeat(4, 20px);
        grid-auto-rows: 20px;
        gap: 2px;
    }
    .ko-hud-social-btn { width: 20px; height: 20px; }
    .ko-hud-social-btn svg { width: 13px; height: 13px; }
}

/* ========================================================
   EVENT TAKVİMİ PANELİ
   ======================================================== */
.event-panel {
    width: 380px;
    max-width: calc(100vw - 32px);
}

.event-body {
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, #16120e 0%, #100d0a 100%);
}

.event-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #2a241d;
    border-radius: 4px;
}

.event-nav-btn {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s;
}

.event-nav-btn:hover {
    background: rgba(255, 217, 120, 0.18);
}

.event-nav-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.event-nav-icon.is-prev {
    transform: rotate(90deg);
}

.event-nav-icon.is-next {
    transform: rotate(-90deg);
}

.event-month-year {
    color: #ffd978;
    font-size: 13px;
    font-weight: 800;
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 1px 1px 0 #000;
}

.event-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    padding: 0 2px;
}

.event-weekdays span {
    display: grid;
    place-items: center;
    height: 20px;
    color: #b8862b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 #000;
}

.event-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.event-day {
    aspect-ratio: 1;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 2px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #2a241d;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.event-day:hover {
    border-color: #8c6f3d;
    background: rgba(30, 24, 18, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.15);
}

.event-day.is-today {
    border-color: #ffd978;
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.35), 0 0 8px rgba(255, 217, 120, 0.25);
}

.event-day.is-today .event-day-number {
    color: #ffd978;
}

.event-day.is-other-month {
    opacity: 0.35;
}

.event-day.is-other-month:hover {
    opacity: 0.55;
}

.event-day.is-selected {
    border-color: #ffd978;
    background: rgba(48, 36, 18, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.4);
}

.event-day-number {
    position: relative;
    z-index: 1;
    color: #e4dbcb;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 1px 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 0;
}

/* Etkinlik ikonu: kartı tam doldurur, soluk; gün numarası üstünde kalır */
.event-day-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    pointer-events: none;
}

/* Seçili günün etkinlikleri + seçili etkinliğin detayı (takvimin sağındaki panel) */
.event-detail-side-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2a241d;
}

.event-detail-side-day > span:first-child {
    color: #ffd978;
    font-size: 12px;
    font-weight: 800;
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 1px 1px 0 #000;
}

.event-side-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.event-side-switch[hidden] {
    display: none;
}

.event-side-switch b {
    color: #b8862b;
    font-size: 10px;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
}

.event-side-switch button {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #2a241d;
    border-radius: 3px;
    color: #ffd978;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.12s;
}

.event-side-switch button:hover {
    border-color: #8c6f3d;
    background: rgba(30, 24, 18, 0.8);
}

.event-detail-side-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-detail-side-info[hidden] {
    display: none;
}

/* Tür etiketi (liste satırı ve detay başlığı aynı etiketi kullanır) */
.event-type-chip {
    display: inline-block;
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type-chip.type-boss { background: rgba(255, 62, 62, 0.2); color: #ff3e3e; border: 1px solid rgba(255, 62, 62, 0.4); }
.event-type-chip.type-drop { background: rgba(78, 201, 176, 0.2); color: #4ec9b0; border: 1px solid rgba(78, 201, 176, 0.4); }
.event-type-chip.type-exp  { background: rgba(255, 217, 120, 0.2); color: #e3b24f; border: 1px solid rgba(255, 217, 120, 0.4); }
.event-type-chip.type-pvp  { background: rgba(255, 107, 74, 0.2); color: #ff6b4a; border: 1px solid rgba(255, 107, 74, 0.4); }
.event-type-chip.type-buff { background: rgba(168, 125, 255, 0.2); color: #a87dff; border: 1px solid rgba(168, 125, 255, 0.4); }
.event-type-chip.type-other{ background: rgba(140, 130, 115, 0.2); color: #8c8273; border: 1px solid rgba(140, 130, 115, 0.4); }

/* Etkinlik Detayı: gün kartına tıklayınca takvimin hemen sağında açılır */
.side-panel.event-panel {
    position: relative; /* detay paneli buraya konumlanır */
    overflow: visible;  /* detay paneli panel sınırının sağına taşar */
}

.event-detail-side {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    width: 260px; /* takvim (380px) yanında rahat okunur genişlik */
    height: 100%; /* takvimle aynı boy */
    display: flex;
    flex-direction: column;
    background: rgba(14, 12, 10, 0.94);
    border: 1px solid #2b251e;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 8;
    animation: eventSideIn 0.16s ease-out;
}

.event-detail-side[hidden] {
    display: none;
}

@keyframes eventSideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.event-detail-side-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #16120e 0%, #100d0a 100%);
    scrollbar-width: thin;
    scrollbar-color: #8c6f3d transparent;
}

.event-detail-side-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a241d;
}

.event-detail-side-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #0a0907;
    border: 1px solid #2a241d;
    border-radius: 4px;
    overflow: hidden;
}

.event-detail-side-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.event-detail-side-titles {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.event-detail-side-titles b {
    color: #ffd978;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 1px 1px 0 #000;
    word-break: break-word;
}

.event-detail-side-rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-detail-side-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 7px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #2a241d;
    border-radius: 3px;
    box-sizing: border-box;
}

.event-detail-side-row dt {
    color: #b8862b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.event-detail-side-row dd {
    margin: 0;
    color: #e4dbcb;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    line-height: 1.3;
}

.event-detail-side-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-detail-side-section[hidden] {
    display: none;
}

.event-detail-side-label {
    color: #b8862b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-detail-side-desc {
    margin: 0;
    color: #e4dbcb;
    font-size: 11.5px;
    line-height: 1.5;
}

.event-detail-side-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.event-detail-side-rewards:empty {
    display: none;
}

/* Dar ekranlarda detay paneli takvimin altına iner */
@media (max-width: 640px) {
    .event-detail-side {
        left: 0;
        top: calc(100% + 6px);
        width: 100%;
        height: auto;
        max-height: 45vh;
    }
}

/* Detaye açıkken takvim + detay ikilisi ekranda ortada kalır ((260 + 8) / 2 = 134px) */
.game-modal-stage[data-active-panel="event"]:has(.event-detail-side:not([hidden])) .game-modal-container {
    transform: translate(calc(-50% - 134px), -50%);
}

.event-reward-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #2a241d;
    border-radius: 9px;
    color: #e4dbcb;
    font-size: 11px;
    font-weight: 700;
}

.event-reward-tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    box-sizing: border-box;
    padding: 1px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 420px) {
    .event-panel {
        width: calc(100vw - 24px);
    }
    .event-day { min-height: 32px; }
    .event-day-number { font-size: 11px; }
}

.ko-server-cards {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: auto;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

.ko-server-card {
    width: 120px;
    height: 20px;
    background: linear-gradient(180deg, rgba(34, 30, 26, 0.92) 0%, rgba(14, 12, 10, 0.96) 100%);
    border: 1px solid #3a332a;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.12s ease;
}

button.ko-server-card {
    font-family: inherit;
    cursor: pointer;
}

button.ko-server-card:hover {
    border-color: #a98737;
    color: #ff8a70;
}

.ko-server-card.is-logout .ko-card-text {
    color: #e8b1a0;
    letter-spacing: 1px;
}

.ko-server-card.is-logout:hover .ko-card-text {
    color: #ff9d84;
}

.ko-server-card.is-coords .ko-card-text {
    color: #9fe29d;
    letter-spacing: 0.8px;
    font-family: 'Consolas', 'Segoe UI', Tahoma, monospace;
}

.ko-card-dot {
    width: 3px;
    height: 3px;
    background: #15120e;
    border: 1px solid #5c4e3a;
    border-radius: 50%;
    box-shadow: 0 0 1px rgba(255, 217, 120, 0.25);
    flex-shrink: 0;
}

.ko-card-text {
    flex: 1;
    text-align: center;
    color: #e4dbcb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
}

.ko-server-card.is-server .ko-card-text {
    color: #ffd978;
}

.ko-server-card.is-placeholder .ko-card-text {
    color: #8c8273;
}

.ko-server-card.is-clan {
    justify-content: flex-start;
    gap: 5px;
    cursor: pointer;
    color: #c4baa9;
}

.ko-server-card.is-clan:hover {
    background: linear-gradient(180deg, rgba(48, 42, 36, 0.96) 0%, rgba(22, 19, 16, 0.98) 100%);
    border-color: #8c6f3d;
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.2), 0 3px 8px rgba(0, 0, 0, 0.7);
}

.ko-server-card.is-clan:hover .ko-card-text {
    color: #ffd978;
}

.ko-server-card.is-clan .ko-card-text {
    text-align: left;
    padding-left: 1px;
    font-size: 9.5px;
}

.ko-card-action-btn {
    width: 14px;
    height: 13px;
    margin-left: auto;
    background: linear-gradient(180deg, #362919 0%, #1a140b 100%);
    border: 1px solid #6e552d;
    border-radius: 2px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 0 2px rgba(255, 217, 120, 0.2);
    transition: all 0.12s ease;
    flex-shrink: 0;
}

.ko-card-action-btn:hover {
    background: linear-gradient(180deg, #4d3a22 0%, #291e10 100%);
    border-color: #ffd978;
    box-shadow: 0 0 4px rgba(255, 217, 120, 0.5);
}

.ko-mini-bulletin {
    width: 7px;
    height: 6px;
    background: linear-gradient(180deg, #ffd978 0%, #b8862b 100%);
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(255, 217, 120, 0.4);
    display: block;
}

/* ========================================================
   SAĞ ALT: LOG KAYDI ALANI (KNIGHT ONLINE STİLİ)
   ======================================================== */
.ko-log-zone {
    position: absolute;
    z-index: 28;
    right: 8px;
    bottom: 8px;
    width: min(250px, calc(100vw - 16px));
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: auto;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

.ko-log-main {
    display: flex;
    background: rgba(14, 12, 10, 0.78);
    border: 1px solid #2b251e;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    height: 130px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.ko-log-flow {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.ko-log-lines {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    color: #d8b23e;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
}

.ko-log-lines::-webkit-scrollbar {
    display: none !important;
}

.ko-log-msg {
    margin: 0;
    /* Satır kelime arasından kırılır; yalnız sığmayan çok uzun bir kelime bölünür */
    word-break: normal;
    overflow-wrap: break-word;
    color: #e0d5c1;
    font-size: 10px;
    line-height: 1.35;
}

.ko-log-msg.is-damage-deal {
    color: #ffb84d;
}

.ko-log-msg.is-damage-take {
    color: #ff5252;
}

.ko-log-msg.is-loot {
    color: #55ff88;
    font-weight: 800;
}

.ko-log-msg.is-status {
    color: #ffd978;
}

.ko-log-msg.is-system {
    color: #4da6ff;
}

.ko-log-bar {
    width: 18px;
    background: #191613;
    border-left: 1px solid #2b251e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 0;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
}

.ko-log-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 18px;
}

.ko-log-tabs .ko-tab-btn {
    flex: 1;
    text-align: center;
    padding: 0 4px;
}

.ko-lock-btn {
    width: 18px;
    height: 18px;
    background: linear-gradient(180deg, #4a3e2c 0%, #2a2016 100%);
    border: 1px solid #6a583a;
    border-radius: 2px;
    color: #e3b24f;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
}

.ko-lock-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    filter: brightness(1.2);
}

.ko-log-tabs .ko-lock-btn {
    margin-left: auto;
}

/* ========================================================
   SAĞ ALT HIZLI MENÜ (SAĞ BAŞTAN: SETTINGS, SIRALAMA, ARKADAŞLAR, TİCARET, ENVANTER)
   ======================================================== */
.ko-bottom-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    width: 100%;
    margin-top: 2px;
}

.ko-menu-item {
    flex: 1;
    min-width: 0;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px 1px;
    background: linear-gradient(180deg, rgba(32, 28, 24, 0.9) 0%, rgba(14, 12, 10, 0.95) 100%);
    border: 1px solid #363028;
    border-radius: 2px;
    color: #c4baa9;
    cursor: pointer;
    font-family: inherit;
    text-shadow: 1px 1px 1px #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.12s ease;
    box-sizing: border-box;
}

.ko-menu-item:hover {
    background: linear-gradient(180deg, rgba(48, 42, 36, 0.95) 0%, rgba(22, 19, 16, 0.98) 100%);
    border-color: #5c4e3a;
    color: #ffd978;
}

.ko-menu-item:active,
.ko-menu-item.is-active {
    background: linear-gradient(180deg, #362919 0%, #1a140b 100%);
    border-color: #8c6f3d;
    color: #ffd978;
    box-shadow: inset 0 0 5px rgba(255, 217, 120, 0.35);
    text-shadow: 0 0 4px rgba(255, 217, 120, 0.4), 1px 1px 1px #000;
}

.ko-menu-icon-wrap {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ko-menu-icon-wrap img {
    max-width: 20px;
    max-height: 20px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px #000);
    transition: transform 0.12s ease, filter 0.12s ease;
}

.ko-menu-item:hover .ko-menu-icon-wrap img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 5px rgba(255, 217, 120, 0.6));
}

.ko-menu-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    max-width: 100%;
    display: block;
    text-align: center;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.game-modal-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.game-modal-stage[hidden] {
    display: none !important;
}

.game-modal-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    display: block;
}

.game-modal-stage[data-active-panel="envanter"] .game-modal-container {
    left: auto;
    top: auto;
    right: 8px;
    bottom: 248px;
    transform: none;
}

.game-modal-stage[data-active-panel="arkadas"] .game-modal-container {
    left: auto;
    top: auto;
    right: 8px;
    bottom: 266px;
    transform: none;
}

.game-modal-stage[data-active-panel="bolum"] .game-modal-container {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
}

/* Karakter paneli bağımsızdır (independentCharacterPanel); modalContainer'ı sol tarafa çekmez */
.game-modal-stage[data-active-panel="karakter"]:not([data-active-panel="yetenek"]):not([data-active-panel="envanter"]) .game-modal-container {
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
}

.game-modal-stage[data-active-panel="yetenek"] .game-modal-container {
    left: auto;
    right: 8px;
    top: calc(50% - 60px);
    bottom: auto;
    transform: translateY(-50%);
}

.side-panel {
    display: flex;
    flex-direction: column;
    background: #ddd8cc;
    border: 2px solid #1e1b18;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.bolum-panel {
    width: 290px;
    position: relative;
    z-index: 2;
}

/* ========================================================
   WARP LIST (GATE UI) - KNIGHT ONLINE CLASSIC STYLE
   ======================================================== */
.warp-list-panel {
    width: 290px;
    background: linear-gradient(180deg, #1b1610 0%, #110e0a 50%, #0a0806 100%);
    border: 2px solid #3c2f1e;
    border-radius: 4px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), inset 0 0 0 1px #59452b, inset 0 0 16px rgba(0, 0, 0, 0.7);
    color: #ded4bf;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.warp-titlebar {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 32px 0 12px;
    background: linear-gradient(180deg, #593f1c 0%, #3a270f 50%, #1e1306 100%);
    border-bottom: 1px solid #140d04;
    box-shadow: inset 0 1px 0 rgba(255, 230, 140, 0.35), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.warp-titlebar.settings-titlebar {
    justify-content: space-between;
    height: 28px;
    padding: 0 6px 0 8px;
    background: linear-gradient(180deg, rgba(48, 34, 24, 0.96), rgba(17, 13, 10, 0.96));
    border-bottom: 1px solid #2b251e;
    box-shadow: inset 0 1px 0 rgba(255, 231, 178, 0.16);
}

.warp-titlebar.settings-titlebar strong {
    color: #e8e0d0;
    font-size: 11px;
    letter-spacing: 0;
    text-shadow: 1px 1px 1px #000;
}

.warp-title-plate {
    text-align: center;
}

.warp-title-plate strong {
    font-size: 13px;
    font-weight: 800;
    color: #ffe68e;
    text-shadow: 1px 1px 2px #000, 0 0 6px rgba(255, 215, 120, 0.3);
    letter-spacing: 0.6px;
}

.warp-close-btn {
    position: absolute;
    right: 7px;
    top: 6px;
    width: 20px;
    height: 20px;
    border: 0;
    cursor: pointer;
    background: url("/assets/ui/baslik/x-close.png") center / 14px 14px no-repeat;
    opacity: 0.9;
    transition: transform 0.15s, opacity 0.15s;
}

.warp-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.warp-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background:
        radial-gradient(circle at 50% 10%, rgba(212, 168, 77, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.warp-top-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.warp-preview-col {
    width: 114px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warp-preview-frame {
    width: 114px;
    height: 122px;
    background: #080706;
    border: 2px solid #5a4424;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px #1a140c, inset 0 0 10px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warp-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: auto;
}

.warp-level-badge {
    height: 24px;
    background: #050706;
    border: 1px solid #4a3a23;
    border-radius: 2px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ee6d8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(78, 230, 216, 0.4);
}

.warp-dest-col {
    flex: 1;
    min-width: 0;
}

.warp-dest-list {
    height: 152px;
    background: #090a09;
    border: 1px solid #3c3021;
    border-radius: 2px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 3px;
    gap: 2px;
}

.warp-dest-list::-webkit-scrollbar {
    width: 5px;
}

.warp-dest-list::-webkit-scrollbar-track {
    background: #0d0c0a;
}

.warp-dest-list::-webkit-scrollbar-thumb {
    background: #463724;
    border-radius: 2px;
}

.warp-dest-item {
    min-height: 22px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    color: #7ec28c;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.warp-dest-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #bbf7ca;
    text-shadow: 0 0 4px rgba(140, 240, 160, 0.4);
}

.warp-dest-item.is-selected {
    border: 1.5px solid #cc2b2b;
    box-shadow: inset 0 0 6px rgba(204, 43, 43, 0.55), 0 0 5px rgba(204, 43, 43, 0.45);
    background: rgba(75, 12, 12, 0.45);
    color: #ffd8d8;
    font-weight: 700;
}

.warp-warning-section {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}

.warp-warning-tab {
    width: 104px;
    height: 19px;
    margin: 0 auto -1px;
    background: linear-gradient(180deg, #4d381c 0%, #261909 100%);
    border: 1px solid #755628;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 225, 140, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.warp-warning-tab span {
    font-size: 10.5px;
    font-weight: 700;
    color: #e5cb8f;
    text-shadow: 1px 1px 1px #000;
}

.warp-warning-box {
    min-height: 84px;
    max-height: 98px;
    background: rgba(8, 7, 6, 0.95);
    border: 1px solid #453521;
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
    padding: 7px 9px;
    overflow-y: auto;
}

.warp-warning-box::-webkit-scrollbar {
    width: 4px;
}

.warp-warning-box::-webkit-scrollbar-track {
    background: #090807;
}

.warp-warning-box::-webkit-scrollbar-thumb {
    background: #3e301d;
}

.warp-warning-title {
    color: #ffe494;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 3px;
    text-shadow: 1px 1px 1px #000;
}

.warp-warning-text {
    color: #a49780;
    font-size: 10px;
    line-height: 1.4;
    white-space: pre-line;
}

.warp-list-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.warp-list-footer .ko-action-btn {
    min-width: 78px;
    height: 25px;
    padding: 0 14px;
    background: linear-gradient(180deg, #3f301b 0%, #22180d 50%, #140e07 100%);
    border: 1px solid #8f6c31;
    box-shadow: inset 0 1px 0 rgba(255, 230, 150, 0.25), 0 2px 4px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    color: #ecd8a2;
    font-size: 11.5px;
    font-weight: 700;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.warp-list-footer .ko-action-btn:hover {
    border-color: #d8aa4a;
    color: #fff1c2;
    box-shadow: inset 0 1px 0 rgba(255, 230, 150, 0.4), 0 0 8px rgba(216, 170, 74, 0.4);
}

.warp-list-footer .ko-action-btn:active {
    background: linear-gradient(180deg, #181109 0%, #2b1f11 100%);
    transform: translateY(1px);
}

/* ========================================================
   KARAKTER PANELÄ° (KNIGHT ONLINE CHAT/LOG STÄ°LÄ° & SOL KENAR)
   ======================================================== */
.karakter-panel {
    width: 275px;
    background: rgba(14, 12, 10, 0.94);
    border: 1px solid #2b251e;
    border-left: 1px solid #2b251e;
    border-radius: 0 4px 4px 0;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.75);
    color: #e0d5c1;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    position: relative;
    z-index: 3;
    overflow: hidden;
    user-select: none;
}

.karakter-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
}

/* BAÅLIK Ã‡UBUÄU (Chat / Log bar tarzÄ±nda) */
.karakter-titlebar {
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 28px 0 8px;
    background: #191613;
    border-bottom: 1px solid #2b251e;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

.karakter-title-plate {
    display: flex;
    align-items: center;
    gap: 6px;
}

.karakter-title-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffd978;
    box-shadow: 0 0 5px #ffd978;
    flex-shrink: 0;
}

.karakter-title-plate strong {
    font-size: 11px;
    font-weight: 700;
    color: #ffd978;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px #000;
}

.karakter-close-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border: 0;
    cursor: pointer;
    background: url("/assets/ui/baslik/x-close.png") center / 13px 13px no-repeat,
                linear-gradient(135deg, #3e1e1a 0%, #1a0d0b 100%);
    opacity: 0.92;
    transition: transform 0.15s, opacity 0.15s;
    font-size: 0;
    color: transparent;
}

.karakter-close-btn:hover {
    opacity: 1;
    transform: scale(1.08);
    background: url("/assets/ui/baslik/x-close.png") center / 13px 13px no-repeat,
                linear-gradient(135deg, #612720 0%, #2a0e0b 100%);
}

/* ÃœST SEKME Ã‡UBUÄU (Chat & Log sekmeleriyle birebir aynÄ±) */
.karakter-tabs-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    background: #0e0c0a;
    border-bottom: 1px solid #2b251e;
    box-sizing: border-box;
    flex-shrink: 0;
}

.karakter-tabs-bar .ko-tab-btn {
    flex: 1;
    height: 20px;
    line-height: 18px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* GÃ–VDE VE Ä°Ã‡ KUTULAR */
.karakter-body {
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 5px;
    background: rgba(14, 12, 10, 0.94);
    box-sizing: border-box;
}

.karakter-tab-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.karakter-tab-content[hidden] {
    display: none !important;
}

.karakter-box {
    background: rgba(14, 12, 10, 0.78);
    border: 1px solid #2b251e;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    padding: 5px 6px;
    box-sizing: border-box;
}

.karakter-top-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.karakter-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.karakter-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.karakter-lbl {
    font-size: 10px;
    font-weight: 700;
    color: #a89f91;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
}

.karakter-val-pill {
    height: 19px;
    min-width: 42px;
    padding: 0 5px;
    background: #080706;
    border: 1px solid #2b251e;
    border-radius: 2px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
}

.karakter-val-pill.is-exp {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 18px;
    padding: 0;
    color: #ffffff;
}

/* Oyun iÃ§i EXP Ã§ubuÄŸuyla aynÄ± altÄ±n renk; akan parÄ±ltÄ± ile canlÄ± */
.karakter-exp-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, #e4b338 0%, #b87813 52%, #6d4208 100%);
    box-shadow: inset 0 1px 0 rgba(255, 235, 168, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.karakter-exp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg, rgba(255, 240, 190, 0) 0%, rgba(255, 240, 190, 0.45) 50%, rgba(255, 240, 190, 0) 100%);
    animation: karakter-exp-shine 2.4s ease-in-out infinite;
}

@keyframes karakter-exp-shine {
    0% { left: -40%; }
    70%, 100% { left: 110%; }
}

.karakter-val-pill.is-exp b {
    position: relative;
    z-index: 1;
    font-weight: 800;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.karakter-exp-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.karakter-mid-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px 6px;
}

.karakter-col-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.karakter-stat-points-card {
    flex: 1;
    margin-top: 1px;
    background: #110e0b;
    border: 1px solid #3d3121;
    border-radius: 2px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px;
    min-height: 44px;
}

.karakter-stat-points-title {
    font-size: 9.5px;
    font-weight: 700;
    color: #a89f91;
    text-shadow: 1px 1px 1px #000;
}

.karakter-stat-points-val {
    font-size: 14px;
    font-weight: 900;
    color: #ffd978;
    text-shadow: 0 0 5px rgba(255, 217, 120, 0.45);
}

.karakter-col-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.karakter-stat-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.karakter-stat-name {
    width: 26px;
    font-size: 10.5px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
}

.karakter-stat-row .karakter-val-pill {
    flex: 1;
    min-width: 32px;
}

.karakter-plus-btn {
    width: 19px;
    height: 19px;
    background: linear-gradient(180deg, #362919 0%, #1a140b 100%);
    border: 1px solid #8c6f3d;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.25), 0 1px 2px rgba(0, 0, 0, 0.5);
    color: #ffd978;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    padding: 0;
    line-height: 1;
}

.karakter-plus-btn:hover:not(.is-disabled) {
    background: linear-gradient(180deg, #4d3a22 0%, #241a0e 100%);
    border-color: #ffd978;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.4), 0 0 5px rgba(255, 217, 120, 0.5);
}

.karakter-plus-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #2b251e;
    background: #151311;
    color: #554e42;
    box-shadow: none;
}

.karakter-resist-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.karakter-resist-header {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #d8b23e;
    text-shadow: 1px 1px 1px #000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 1px solid #2b251e;
}

.karakter-resist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.karakter-resist-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* BONUSLAR SAYFASI */
.karakter-bonus-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px;
    min-height: 290px;
}

.karakter-bonus-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.karakter-bonus-bullet {
    width: 5px;
    height: 5px;
    background: #d8b23e;
    transform: rotate(45deg);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 3px rgba(216, 178, 62, 0.5);
}

.karakter-bonus-lbl {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    color: #a89f91;
    text-shadow: 1px 1px 1px #000;
}

.karakter-bonus-val {
    font-size: 11px;
    font-weight: 800;
    color: #ffd978;
    text-shadow: 1px 1px 1px #000;
}
/* ========================================================
   SETTINGS PANEL
   ======================================================== */
.settings-panel {
    width: 520px;
    height: 350px;
    position: relative;
    z-index: 4;
    border-radius: 0;
    border: 1px solid #4e3d37;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0, 0, 0, 0.85);
    color: #e0d5c1;
    overflow: hidden;
}

.settings-titlebar {
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
    padding: 0 30px 0 10px;
    background: linear-gradient(90deg, rgba(58, 22, 19, 0.98) 0%, rgba(26, 13, 12, 0.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
    border-radius: 0 !important;
}

.settings-titlebar:active {
    cursor: grabbing;
}

.settings-titlebar strong {
    flex: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 700;
    color: #f0ddd0 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px #000;
    display: flex;
    align-items: center;
    gap: 7px;
}

.settings-titlebar strong::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ba6256;
    box-shadow: 0 0 6px #ba6256;
    flex-shrink: 0;
    display: inline-block;
}

.settings-titlebar button,
.settings-titlebar [data-close-panel] {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 26px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(40, 20, 18, 0.75) !important;
    color: #c9c1bb !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: background 0.12s, color 0.12s !important;
    box-sizing: border-box !important;
}

.settings-titlebar button::before,
.settings-titlebar [data-close-panel]::before {
    content: '\00d7' !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.settings-titlebar button:hover,
.settings-titlebar [data-close-panel]:hover {
    background: #7a2b22 !important;
    color: #ffffff !important;
}

.settings-frame {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 6px;
    background: rgba(10, 8, 8, 0.96);
    box-sizing: border-box;
}

.settings-npc {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-portrait {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #4e3d37;
    background: #0c0908;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.95), 0 0 0 1px #261918;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.settings-portrait img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.settings-scroll {
    flex: 1;
    height: 64px;
    padding: 8px 12px;
    background: rgba(7, 7, 7, 0.88);
    border: 1px solid #3f352f;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px #1b1614, 0 2px 6px rgba(0, 0, 0, 0.5);
    color: #c9c1bb;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.settings-scroll p {
    margin: 0;
}

.settings-scroll p b {
    color: #e0dcd7;
}

.settings-content {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 6px;
    min-height: 0;
    flex: 1;
}

.settings-side-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.settings-side-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.settings-side-tabs button {
    height: 22px;
    min-height: 22px;
    color: #aaa099;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 400;
    text-shadow: 1px 1px 1px #000;
    border: 1px solid #3e3936;
    border-radius: 0;
    background: rgba(8, 8, 8, 0.85);
    box-shadow: none;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    padding: 0 4px;
    transition: all 0.15s ease;
}

.settings-side-tabs button:hover {
    color: #f0ddd0;
    border-color: #744638;
    background: rgba(22, 16, 15, 0.92);
}

.settings-side-tabs button.is-active {
    color: #f0ddd0;
    border-color: #a27469;
    background: linear-gradient(180deg, rgba(65, 27, 24, 0.96), rgba(25, 12, 12, 0.96));
    box-shadow: inset 0 0 0 2px #261918, 0 0 8px rgba(162, 116, 105, 0.3);
    font-weight: 700;
}

.settings-main {
    min-width: 0;
    border: 1px solid #3f352f;
    border-radius: 0;
    background: rgba(8, 8, 8, 0.88);
    box-shadow: inset 0 0 0 1px #1b1614, 0 2px 6px rgba(0, 0, 0, 0.5);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.settings-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 16px;
    padding: 2px 4px 6px;
    color: #c9c1bb;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-shadow: 1px 1px 1px #000;
}

.settings-options-grid label,
.settings-check {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
}

.settings-options-grid input,
.settings-check input {
    appearance: none;
    width: 12px;
    height: 12px;
    margin: 0;
    background: #090807;
    border: 1px solid #4e3d37;
    border-radius: 0;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    position: relative;
}

.settings-options-grid input:checked,
.settings-check input:checked {
    background: linear-gradient(135deg, #a27469, #652e26);
    border-color: #bc8b7a;
    box-shadow: 0 0 5px rgba(188, 139, 122, 0.4);
}

.settings-options-grid input:checked::after,
.settings-check input:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 3px;
    height: 6px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.settings-sound-levels {
    display: grid;
    gap: 7px;
    padding: 8px 6px 2px;
    border-top: 1px solid #39332e;
    color: #c9c1bb;
    font: 700 10.5px Tahoma, 'Segoe UI', Arial, sans-serif;
}

.settings-sound-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.settings-sound-row > span {
    white-space: nowrap;
}

.settings-sound-row input[type="range"] {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 14px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.settings-sound-row input[type="range"]::-webkit-slider-runnable-track {
    height: 7px;
    border: 1px solid #39332e;
    background: linear-gradient(90deg, #ba6256 0%, #ba6256 var(--sound-level, 0%), #090807 var(--sound-level, 0%), #090807 100%);
    box-shadow: inset 0 1px 2px #000;
}

.settings-sound-row input[type="range"]::-moz-range-track {
    height: 7px;
    border: 1px solid #39332e;
    background: linear-gradient(90deg, #ba6256 0%, #ba6256 var(--sound-level, 0%), #090807 var(--sound-level, 0%), #090807 100%);
    box-shadow: inset 0 1px 2px #000;
}

.settings-sound-row input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -3px;
    border: 1px solid #d29a86;
    border-radius: 50%;
    background: #f0ddd0;
    box-shadow: 0 0 5px rgba(188, 139, 122, 0.55);
}

.settings-sound-row input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 1px solid #d29a86;
    border-radius: 50%;
    background: #f0ddd0;
    box-shadow: 0 0 5px rgba(188, 139, 122, 0.55);
}

.settings-sound-row strong {
    color: #f0ddd0;
    text-align: right;
    font-size: 10px;
}

.settings-controls[hidden],
.settings-slider[hidden],
.settings-sound-levels[hidden] {
    display: none !important;
}

.settings-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px;
    border-top: 1px solid #39332e;
    color: #a49689;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.settings-stepper {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.settings-stepper button,
.settings-slider button {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #744638;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(65, 27, 24, 0.9), rgba(25, 12, 12, 0.9));
    color: #f0ddd0;
    cursor: pointer;
    font-size: 10px;
    box-shadow: inset 0 0 0 1px #261918;
    transition: all 0.12s ease;
}

.settings-stepper button:hover,
.settings-slider button:hover {
    border-color: #a27469;
    color: #fff1dd;
    background: #50241d;
}

.settings-stepper span {
    min-width: 24px;
    text-align: center;
    color: #f0ddd0;
    font-weight: 700;
}

.settings-scale {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.settings-scale strong {
    color: #f0ddd0;
    font-weight: 800;
}

.settings-slider {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 0;
}

.settings-slider div {
    flex: 1;
    height: 8px;
    background: #090807;
    border: 1px solid #39332e;
    border-radius: 0;
    box-shadow: inset 0 1px 2px #000;
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
}

.settings-slider div:focus-visible {
    outline: 1px solid #d28a76;
    outline-offset: 2px;
}

.settings-slider span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #744638 0%, #ba6256 100%);
}

.settings-footer {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-top: 1px solid #39332e;
    background: transparent;
}

.settings-save {
    position: relative;
    width: 118px;
    max-width: 118px;
    box-sizing: border-box;
    height: 24px;
    min-height: 24px;
    padding: 0 6px;
    border: 1px solid #ad6253;
    border-radius: 0;
    box-shadow: inset 0 0 0 2px #291815;
    background: linear-gradient(105deg, rgba(101, 46, 38, 0.96), rgba(51, 23, 20, 0.96));
    color: #f0e1d4;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.settings-save::before,
.settings-save::after {
    display: none !important;
}

.settings-save:hover {
    border-color: #d29a83;
    background: linear-gradient(105deg, #793b30, #48201b);
    color: #fff0e5;
    box-shadow: inset 0 0 0 2px #38201b, 0 0 14px rgba(146, 65, 51, 0.35);
}

.settings-footer span {
    color: #8a7e75;
    font-size: 9.5px;
    font-weight: 700;
    padding-right: 2px;
}



/* ========================================================
   KO WINDOW PANEL BASE
   ======================================================== */
.ko-window-panel {
    border-radius: 3px;
    border: 1px solid #2b251e;
    background: rgba(14, 12, 10, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    color: #e0d5c1;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

/* ========================================================
   INVENTORY PANEL (KNIGHT ONLINE CHAT/LOG STİLİ)
   ======================================================== */
.inventory-panel {
    --inventory-slot-size: 36px;
    --inventory-slot-gap: 4px;
    width: min(480px, calc(100vw - 24px));
    position: relative;
    z-index: 6;
    overflow: visible;
}

.inventory-body {
    display: grid;
    grid-template-columns: 248px max-content;
    gap: 6px;
    padding: 6px;
    background: rgba(14, 12, 10, 0.94);
    overflow: visible;
    box-sizing: border-box;
}

.inventory-wear,
.inventory-bag,
.inventory-depo {
    min-width: 0;
    border: 1px solid #2b251e;
    background: rgba(14, 12, 10, 0.78);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    padding: 6px;
}

.inventory-wear {
    grid-column: 1;
    grid-row: 1;
    height: 250px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 6px;
}

.inventory-top {
    display: grid;
    grid-template-columns: 156px 76px;
    gap: 4px;
    height: 156px;
}

.inventory-character-card {
    position: relative;
    height: 156px;
    overflow: hidden;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: #090807;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
}

.inventory-class {
    position: absolute;
    left: 6px;
    top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    color: #ffd978;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 1px 1px 1px #000;
}

.inventory-class img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.inventory-character-art {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 104px;
    max-height: 128px;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.8));
}

.inventory-equip-grid {
    display: grid;
    grid-template-columns: repeat(2, var(--inventory-slot-size));
    grid-auto-rows: var(--inventory-slot-size);
    gap: var(--inventory-slot-gap);
    height: 156px;
}

.inventory-jewel-row {
    display: grid;
    grid-template-columns: repeat(6, var(--inventory-slot-size));
    gap: var(--inventory-slot-gap);
    height: var(--inventory-slot-size);
}

.inventory-pet-row {
    display: grid;
    grid-template-columns: repeat(6, var(--inventory-slot-size));
    gap: var(--inventory-slot-gap);
    height: auto;
    min-height: var(--inventory-slot-size);
    flex: 1;
}

.inventory-pet-row .inventory-slot {
    height: 100%;
    min-height: 0;
}

.inventory-bag {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.inventory-depo {
    position: absolute;
    left: 6px;
    top: calc(100% + 6px);
    width: 248px;
    z-index: 4;
    padding: 6px;
    background: rgba(14, 12, 10, 0.94);
    border-color: #2b251e;
    box-shadow: inset 0 0 0 1px rgba(8, 7, 6, 0.95), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.inventory-depo[hidden] {
    display: none;
}

/* Depo kapatma düğmesi yalnızca mobilde (mobil.css) görünür */
.inventory-depo-close {
    display: none;
}

.inventory-depo-head {
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 5px;
    color: #ffd978;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
}

.inventory-depo-title,
.inventory-depo-pages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.inventory-depo-head img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.inventory-depo-page-btn {
    width: 18px;
    height: 17px;
    padding: 0;
    border: 1px solid #332b22;
    border-radius: 0;
    background: #080706;
    color: #d8cfbe;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    line-height: 15px;
    text-align: center;
    text-shadow: 1px 1px 1px #000;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.inventory-depo-page-btn.is-active {
    color: #ffd978;
    border-color: #8c6f3d;
}

.inventory-depo-page-btn.is-add {
    color: #7fe082;
}

.inventory-depo-grid {
    display: grid;
    grid-template-columns: repeat(6, var(--inventory-slot-size));
    grid-auto-rows: var(--inventory-slot-size);
    gap: var(--inventory-slot-gap);
    padding: 0;
}

.inventory-slot.is-depo-trigger {
    cursor: pointer;
}

.inventory-slot.is-trash-slot.is-trash-hover {
    border-color: rgba(255, 82, 64, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 82, 64, 0.65), 0 0 6px rgba(255, 82, 64, 0.35);
}

.inventory-bag-grid {
    display: grid;
    grid-template-columns: repeat(5, var(--inventory-slot-size));
    grid-auto-rows: var(--inventory-slot-size);
    gap: var(--inventory-slot-gap);
}

.inventory-slot {
    position: relative;
    min-width: 0;
    min-height: var(--inventory-slot-size);
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: #080706;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.12s, background 0.12s;
}

.inventory-slot.has-item {
    background: #120f0c;
    border-color: #8c6f3d;
    box-shadow: inset 0 0 4px rgba(255, 217, 120, 0.15);
}

.inventory-slot.is-locked {
    background: #050404;
    border-color: #1a1612;
    opacity: 0.75;
}

.inventory-slot:hover {
    border-color: #ffd978;
}

/* Yükseltme seviyesi yükseldikçe slot aurası ve parıltı daha belirginleşir. */
.inventory-slot.is-enhanced-plus::before,
.inventory-slot.is-enhanced-plus::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}
.inventory-slot.is-enhanced-plus::before {
    /* Tier rengi arka planı ve border'ı belirler; yükseltme efekti bunların üstüne renk basmaz. */
    background: transparent;
    animation: upgradeSlotAura var(--upgrade-speed) ease-in-out infinite alternate;
}
.inventory-slot.is-enhanced-plus::after {
    inset: -35% -65%;
    background: linear-gradient(110deg, transparent 43%, var(--upgrade-sheen) 50%, transparent 57%);
    opacity: 0;
    transform: translateX(-75%);
    animation: upgradeSlotSheen var(--upgrade-speed) ease-in-out infinite;
}
.inventory-slot.is-enhanced-plus > img { position: relative; z-index: 2; }
.inventory-slot.is-enhanced-plus .inventory-plus {
    z-index: 6;
    color: var(--upgrade-color);
    text-shadow: 0 0 3px #080706, 0 0 7px var(--upgrade-color), 0 0 12px var(--upgrade-color);
}
.inventory-slot.is-enhanced-plus-7 { --upgrade-color: #65e3ff; --upgrade-aura: #168aff55; --upgrade-sheen: #e4fbff99; --upgrade-speed: 3.2s; }
.inventory-slot.is-enhanced-plus-8 { --upgrade-color: #dc91ff; --upgrade-aura: #8138ff66; --upgrade-sheen: #ffe6ffbb; --upgrade-speed: 2.7s; }
.inventory-slot.is-enhanced-plus-9 { --upgrade-color: #ffda68; --upgrade-aura: #ff7a1f77; --upgrade-sheen: #fff6cddd; --upgrade-speed: 2.1s; }
.inventory-slot.is-enhanced-plus-10 { --upgrade-color: #ff9276; --upgrade-aura: #f32eaa88; --upgrade-sheen: #fff5bbee; --upgrade-speed: 1.55s; }
@keyframes upgradeSlotAura {
    from { opacity: 0.45; box-shadow: inset 0 0 2px var(--upgrade-color); }
    to { opacity: 0.9; box-shadow: inset 0 0 7px var(--upgrade-color); }
}
@keyframes upgradeSlotSheen {
    0%, 62% { opacity: 0; transform: translateX(-75%); }
    72% { opacity: 0.95; }
    100% { opacity: 0; transform: translateX(75%); }
}

.inventory-slot img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    opacity: 0.82;
    pointer-events: none;
}

.inventory-slot.has-item img,
.inventory-slot.is-locked img {
    opacity: 1;
}

/* Ekipman görünürlüğü: item kartının sağ üstündeki küçük göz anahtarı. */
.equipment-visibility {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 3;
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.equipment-visibility:hover { background: transparent; color: #ffffff; }
.equipment-eye-icon {
    display: block;
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.equipment-visibility.is-hidden { color: #ffffff; }
.equipment-visibility.is-hidden .equipment-eye-icon { opacity: 0.45; }
.inventory-slot .inventory-plus {
    top: 1px;
    left: 2px;
    right: auto;
    bottom: auto;
    z-index: 2;
    font-size: 8px;
    line-height: 9px;
}

.inventory-plus,
.inventory-count {
    position: absolute;
    right: 3px;
    bottom: 2px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
}

.inventory-plus {
    left: 3px;
    right: auto;
    color: #ffd978;
}

.inventory-footer {
    height: 42px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 0 3px;
    margin: 4px -6px -6px;
    border-top: 1px solid #2b251e;
    background: linear-gradient(180deg, #12100d 0%, #0b0907 100%);
    box-sizing: border-box;
}

.inventory-footer-tools,
.inventory-currency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    min-width: 0;
    height: 17px;
    border: 1px solid #4a3b29;
    border-radius: 0;
    background: rgba(16, 13, 10, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 217, 120, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.9),
        inset 0 0 4px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
}

.inventory-footer-tools {
    padding: 0;
}

.inventory-currency-row {
    padding: 0;
}

.inventory-capacity,
.inventory-noah {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    height: 100%;
    padding: 0 5px;
    border: 0;
    border-right: 1px solid #4a3b29;
    box-sizing: border-box;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    color: #f2ead8;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 1px #000;
}

.inventory-capacity,
.inventory-noah.is-ko {
    flex: 0 0 64px;
    width: 64px;
}

.inventory-capacity img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px #000);
}

.inventory-noah {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    border-right: 0;
}

.inventory-noah.is-ko {
    order: -1;
    justify-content: flex-start;
}

.inventory-noah img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px #000);
}

.inventory-noah b {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
    letter-spacing: 0.2px;
}

.inventory-noah.is-ko b {
    color: #ffd978;
}

.inventory-noah.is-ko img {
    transform: none;
}

/* ========================================================
   RANK PANEL (KNIGHT ONLINE CHAT/LOG STİLİ)
   ======================================================== */
.rank-panel {
    width: 440px;
    height: 440px;
    position: relative;
    z-index: 4;
    border-radius: 0;
    border: 1px solid #4e3d37;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0, 0, 0, 0.85);
    color: #e0dcd7;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    user-select: none;
}

.rank-panel .settings-titlebar {
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
    padding: 0 30px 0 10px;
    background: linear-gradient(90deg, rgba(58, 22, 19, 0.98) 0%, rgba(26, 13, 12, 0.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
    border-radius: 0 !important;
}

.rank-panel .settings-titlebar strong {
    flex: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 700;
    color: #f0ddd0 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px #000;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rank-panel .settings-titlebar strong::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8cfbe;
    box-shadow: 0 0 4px rgba(216, 207, 190, 0.55);
    flex-shrink: 0;
    display: inline-block;
}

.rank-panel .settings-titlebar button,
.rank-panel [data-close-panel] {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 26px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(40, 20, 18, 0.75) !important;
    color: #c9c1bb !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: background 0.12s, color 0.12s !important;
    box-sizing: border-box !important;
}

.rank-panel .settings-titlebar button::before,
.rank-panel [data-close-panel]::before {
    content: '\00d7' !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.rank-panel .settings-titlebar button:hover,
.rank-panel [data-close-panel]:hover {
    background: #7a2b22 !important;
    color: #ffffff !important;
}

.rank-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: rgba(10, 8, 8, 0.96);
    color: #e0dcd7;
    box-sizing: border-box;
}

.rank-table {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid #3f352f;
    border-radius: 0;
    background: rgba(7, 7, 7, 0.9);
    box-shadow: inset 0 0 0 1px #1b1614, 0 2px 6px rgba(0, 0, 0, 0.5);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rank-table::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px minmax(120px, 1.4fr) minmax(80px, 1fr) 36px 64px;
    align-items: center;
    min-height: 36px;
    border-bottom: 1px solid rgba(147, 113, 94, 0.18);
    color: #c9c1bb;
    font-size: 11px;
    font-weight: 600;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.rank-row > span {
    padding: 0 4px;
    min-width: 0;
}

.rank-row.is-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 28px;
    background: linear-gradient(180deg, rgba(46, 19, 17, 0.98) 0%, rgba(20, 11, 10, 0.96) 100%);
    color: #d9c9b5;
    border-bottom: 1px solid #4e3d37;
    text-shadow: 0 1px 2px #000;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rank-row.is-head .rank-pos {
    color: #ba6256;
}

.rank-row.is-head .rank-head-name {
    padding-left: 28px;
    text-align: left;
    color: #f0ddd0;
}

.rank-row.is-head .rank-head-clan {
    text-align: left;
    color: #d9c9b5;
}

.rank-row.is-head .rank-stat {
    color: #d9c9b5;
}

.rank-row:not(.is-head):nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.rank-row:not(.is-head):hover {
    background: linear-gradient(90deg, rgba(91, 43, 35, 0.28), rgba(20, 15, 14, 0.15));
}

.rank-row.is-self {
    background: linear-gradient(90deg, rgba(74, 28, 24, 0.5), rgba(30, 15, 13, 0.3)) !important;
    box-shadow: inset 0 0 0 1px #a27469, inset 0 0 8px rgba(162, 116, 105, 0.25) !important;
    color: #f0ddd0;
}

.rank-row.is-self .rank-name b {
    color: #ffd978;
    text-shadow: 0 0 4px rgba(255, 217, 120, 0.3);
}

.rank-row.is-self .rank-clan {
    color: #f0ddd0;
}

.rank-pos {
    text-align: center;
    color: #9b938b;
    font-weight: 700;
    font-size: 11px;
}

.rank-pos.is-rank-1 {
    color: #e5b567;
    text-shadow: 0 0 8px rgba(229, 181, 103, 0.6);
    font-size: 12px;
    font-weight: 800;
}

.rank-pos.is-rank-2 {
    color: #dcd3cb;
    text-shadow: 0 0 6px rgba(220, 211, 203, 0.5);
    font-size: 11.5px;
    font-weight: 800;
}

.rank-pos.is-rank-3 {
    color: #c8866e;
    text-shadow: 0 0 6px rgba(200, 134, 110, 0.5);
    font-size: 11px;
    font-weight: 800;
}

.rank-stat {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10.5px;
}

.rank-stat.rank-np {
    color: #e0a274;
    font-weight: 700;
    text-align: right;
    padding-right: 6px;
}

.rank-stat.rank-power {
    color: #e0a274;
    font-weight: 700;
}

.rank-stat.rank-lv {
    color: #e0dcd7;
    font-weight: 700;
}

.rank-name {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: 16px 12px;
    column-gap: 6px;
    align-items: center;
    min-width: 0;
}

.rank-name img {
    grid-row: 1 / span 2;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.rank-name b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e7ded7;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}

.rank-name em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9b938b;
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
}

.rank-clan {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #b9aaa0;
    font-size: 11px;
    text-align: left;
}

.rank-empty {
    padding: 36px 12px;
    text-align: center;
    color: #aaa099;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 400;
}



/* ========================================================
   FRIEND PANEL (KNIGHT ONLINE CHAT/LOG STİLİ)
   ======================================================== */
.friend-panel {
    width: 340px;
    height: 430px;
    position: relative;
    z-index: 4;
    border-radius: 0;
    border: 1px solid #4e3d37;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0, 0, 0, 0.85);
    color: #e0dcd7;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    user-select: none;
}

.friend-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: rgba(10, 8, 8, 0.96);
    box-sizing: border-box;
}

.friend-search {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 4px;
}

.friend-search input {
    height: 24px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    color: #f0ddd0;
    font-size: 11px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
}

.friend-search input:focus {
    border-color: #8a483e;
}

.friend-search input::placeholder {
    color: #7a7065;
}

.friend-search button {
    height: 24px;
    border: 1px solid #ad6253;
    border-radius: 0;
    background: linear-gradient(105deg, rgba(101, 46, 38, 0.96), rgba(51, 23, 20, 0.96));
    box-shadow: inset 0 0 0 1px #291815;
    color: #f0e1d4;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.friend-search button:hover {
    border-color: #d29a83;
    background: linear-gradient(105deg, #793b30, #48201b);
    color: #fff0e5;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 8px rgba(146, 65, 51, 0.3);
}

.friend-message {
    min-height: 0;
    max-height: 34px;
    overflow: hidden;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #ffd978;
    font-size: 10px;
    font-weight: 800;
}

.friend-message.is-error {
    color: #ff5252;
}

.friend-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.friend-page[hidden] {
    display: none;
}

.friend-group-title {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 2px 2px 4px;
    border-bottom: 1px solid #2b251e;
    color: #ffd978;
    text-shadow: 1px 1px 1px #000;
}

.friend-group-title strong {
    font-size: 11.5px;
    font-weight: 800;
}

.friend-group-title span {
    color: #a89f91;
    font-size: 10px;
    font-weight: 700;
    text-shadow: none;
}

.friend-title-count {
    margin-left: 6px;
    color: #c9b37a;
    font-size: 10.5px;
    font-weight: 700;
}

.friend-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: rgba(14, 12, 10, 0.78);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.friend-list.is-requests {
    flex: 0 0 auto;
    max-height: 118px;
}

.friend-row {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d0c8b8;
    transition: background 0.12s ease;
}

.friend-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.friend-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #8c6f3d;
    background: #110e0b;
    color: #ffd978;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
}

.friend-avatar.is-warrior {
    border-color: #b8862b;
}

.friend-avatar.is-rogue {
    border-color: #4e8a38;
}

.friend-avatar.is-mage {
    border-color: #3a6ea8;
}

.friend-avatar.is-blocked {
    filter: grayscale(0.85);
    opacity: 0.8;
}

.friend-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5c5346;
    box-shadow: 0 0 0 2px #0e0c09;
}

.friend-status.is-online {
    background: #00ff00;
    box-shadow: 0 0 0 2px #0e0c09, 0 0 4px #00ff00;
}

.friend-status.is-request {
    background: #ffd978;
    box-shadow: 0 0 0 2px #0e0c09;
}

.friend-more {
    margin-left: auto;
    height: 21px;
    padding: 0 8px;
    border: 1px solid #5a3c34;
    border-radius: 0;
    background: linear-gradient(180deg, #2b1a17 0%, #170e0d 100%);
    box-shadow: inset 0 0 0 1px #1a0f0d;
    color: #e6d8ca;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.friend-more:hover {
    border-color: #9c5c4e;
    background: linear-gradient(180deg, #44221d 0%, #291310 100%);
    color: #ffffff;
}

.friend-menu {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    gap: 3px;
    padding: 2px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(14, 11, 10, 0.98);
    box-shadow: inset 0 0 0 1px #261918, 0 4px 12px rgba(0, 0, 0, 0.85);
    max-width: calc(100% - 10px);
    box-sizing: border-box;
}

.friend-menu button {
    height: 22px;
    padding: 0 6px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: linear-gradient(180deg, #241614 0%, #140d0c 100%);
    color: #d8cfbe;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.friend-menu button:hover {
    border-color: #8a483e;
    background: linear-gradient(180deg, #4a231e 0%, #2b1411 100%);
    color: #ffffff;
}

.friend-menu .friend-icon-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: linear-gradient(180deg, #241614 0%, #140d0c 100%);
    color: #e0d5c1;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.friend-menu .friend-icon-btn:hover {
    border-color: #8a483e;
    background: linear-gradient(180deg, #4a231e 0%, #2b1411 100%);
    color: #ffffff;
}

.friend-menu .friend-icon-btn svg {
    display: block;
    pointer-events: none;
}

.friend-menu .friend-icon-btn.is-danger {
    border-color: #5a2620;
    background: linear-gradient(180deg, #2e120f 0%, #180907 100%);
    color: #e57368;
}

.friend-menu .friend-icon-btn.is-danger:hover {
    border-color: #ba382a;
    background: linear-gradient(180deg, #5c1e18 0%, #3a100c 100%);
    color: #ffffff;
}

.friend-menu.is-static {
    position: static;
    transform: none;
    margin-left: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.friend-menu.is-static button {
    height: 22px;
    padding: 0 8px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
}

.friend-menu.is-static button[data-friend-accept] {
    border: 1px solid #7a3a30;
    border-radius: 0;
    background: linear-gradient(180deg, #4a231e 0%, #2b1411 100%);
    color: #f0ddd0;
}

.friend-menu.is-static button[data-friend-accept]:hover {
    border-color: #aa4d40;
    background: #6e2e25;
    color: #fff;
}

.friend-menu.is-static button[data-friend-reject] {
    border: 1px solid #4c4740;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.9);
    color: #c9c1bb;
}

.friend-menu.is-static button[data-friend-reject]:hover {
    border-color: #744638;
    background: rgba(30, 20, 18, 0.9);
    color: #fff;
}

/* ========================================================
   MODAL SÜRÜKLEME (MOVE/DRAG) GÖRSEL YARDIMCILARI
   ======================================================== */
.karakter-titlebar,
.settings-titlebar,
.warp-titlebar {
    cursor: grab;
    user-select: none;
}

body.is-modal-dragging {
    user-select: none !important;
    cursor: grabbing !important;
}

body.is-modal-dragging .karakter-titlebar,
body.is-modal-dragging .settings-titlebar,
body.is-modal-dragging .warp-titlebar,
body.is-modal-dragging .side-panel > header {
    cursor: grabbing !important;
}

body.is-modal-dragging .game-modal-container,
body.is-modal-dragging [data-side-panel="karakter"] {
    will-change: transform;
}

/* Pencere taşınırken slot parıltıları GPU katmanını sürekli yeniden boyamasın. */
body.is-modal-dragging .inventory-panel .item-effect-container,
body.is-modal-dragging .inventory-panel .item-effect-container * {
    animation-play-state: paused !important;
}

.friend-meta {
    min-width: 0;
}

.friend-meta b,
.friend-meta em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-meta b {
    color: #f3e4b0;
    font-size: 11.5px;
}

.friend-meta em {
    color: #a89f91;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 700;
}

.friend-tabs {
    height: 32px;
    flex-shrink: 0;
    display: flex;
    gap: 3px;
}

.friend-tabs button {
    flex: 1;
    height: 100%;
    border: 1px solid #3e3936;
    border-radius: 0;
    background: rgba(10, 9, 8, 0.92);
    box-shadow: inset 0 0 0 1px #1d1a19;
    color: #a89f91;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    text-shadow: 0 1px 2px #000;
    transition: all 0.15s ease;
    user-select: none;
}

.friend-tabs button:hover {
    border-color: #744638;
    background: rgba(28, 20, 18, 0.95);
    color: #f0ddd0;
}

.friend-tabs button.is-active {
    background: linear-gradient(180deg, rgba(68, 28, 24, 0.96) 0%, rgba(28, 13, 12, 0.96) 100%);
    border-color: #a25c4e;
    color: #f0ddd0;
    box-shadow: inset 0 0 0 2px #261918, 0 0 8px rgba(162, 92, 78, 0.25);
}

.friend-empty {
    padding: 22px 12px;
    color: #a89f91;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.5;
}

/* ========================================================
   SKILL (YETENEK) PANELİ (KNIGHT ONLINE CHAT/LOG & SPELLBOOK)
   ======================================================== */
.skill-panel {
    width: 310px;
    height: auto;
    position: relative;
    z-index: 4;
    overflow: hidden;
}

.skill-titlebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.skill-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: rgba(14, 12, 10, 0.95);
    box-sizing: border-box;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.skill-top-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 26px;
    padding: 0 8px;
    background: #110e0b;
    border: 1px solid #2b251e;
    border-radius: 2px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.skill-badge-class {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #8c8273;
}

.skill-badge-class b {
    color: #ffd978;
    font-size: 11px;
    font-weight: 800;
}

.skill-points-box {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #a89f91;
    font-weight: 700;
}

.skill-points-box strong {
    color: #ff5599;
    font-size: 13px;
    font-weight: 900;
    text-shadow: 0 0 6px rgba(255, 85, 153, 0.5);
}

.skill-tabs-bar {
    display: flex;
    gap: 3px;
    height: 26px;
    flex-shrink: 0;
}

.skill-tabs-bar .ko-tab-btn {
    flex: 1;
    height: 100%;
    border: 1px solid #3d3326;
    border-radius: 2px;
    background: linear-gradient(180deg, #32261a 0%, #17120c 100%);
    color: #b8ac95;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-shadow: 1px 1px 1px #000;
    transition: all 0.12s ease;
}

.skill-tabs-bar .ko-tab-btn:hover {
    color: #ffd978;
    border-color: #8c6f3d;
}

.skill-tabs-bar .ko-tab-btn.is-active {
    color: #ffd978;
    border-color: #ffd978;
    background: linear-gradient(180deg, #4d3822 0%, #261b0e 100%);
    box-shadow: inset 0 0 6px rgba(255, 217, 120, 0.3);
}

.skill-pages-wrap {
    flex: 0 0 auto;
    height: 138px;
    max-height: 138px;
    overflow-y: auto !important;
    overflow-x: hidden;
    background: rgba(8, 7, 6, 0.85);
    border: 1px solid #2b251e;
    border-radius: 2px;
    padding: 4px;
    padding-right: 5px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.skill-pages-wrap::-webkit-scrollbar {
    width: 5px;
    display: block !important;
}

.skill-pages-wrap::-webkit-scrollbar-track {
    background: #0d0c0a;
    border-radius: 2px;
}

.skill-pages-wrap::-webkit-scrollbar-thumb {
    background: #463724;
    border: 1px solid #2a2014;
    border-radius: 2px;
}

.skill-pages-wrap::-webkit-scrollbar-thumb:hover {
    background: #7d6139;
}

.skill-page {
    display: none;
}

.skill-page.is-active,
.skill-page:not([hidden]) {
    display: block;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 5px;
    background: linear-gradient(180deg, #1d1712 0%, #100d0a 100%);
    border: 1px solid #2d261e;
    border-radius: 2px;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: all 0.12s ease;
    box-sizing: border-box;
}

.skill-item:hover {
    background: linear-gradient(180deg, #2e2318 0%, #1a140d 100%);
    border-color: #8c6f3d;
}

.skill-item.is-selected {
    background: linear-gradient(180deg, #3d2d1b 0%, #241a0e 100%) !important;
    border-color: #ffd978 !important;
    box-shadow: 0 0 6px rgba(255, 217, 120, 0.4), inset 0 0 4px rgba(255, 217, 120, 0.2);
}

.skill-icon-frame {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060504;
    border: 1px solid #4a3e2e;
    border-radius: 2px;
    box-shadow: inset 0 0 4px #000;
}

.skill-icon-frame img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px #000);
}

.skill-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 1px;
}

.skill-item-info b {
    color: #e6dfd1;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 1px #000;
}

.skill-item.is-selected .skill-item-info b {
    color: #ffd978;
}

.skill-item-info em {
    color: #8c8273;
    font-size: 8.5px;
    font-style: normal;
    font-weight: 700;
}

/* ========================================================
   SKILL BOOK / ANCIENT SPELLBOOK DETAILS (BÜYÜ KİTABI)
   ======================================================== */
.skill-book-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.skill-book-container {
    position: relative;
    background: radial-gradient(ellipse at 50% 30%, #3e2815 0%, #261608 55%, #150b04 100%);
    border: 1.5px solid #6e4f2b;
    border-radius: 3px;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.95), 0 3px 8px rgba(0, 0, 0, 0.7);
    padding: 7px 9px;
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
}

/* Antik büyü mührü / filigran */
.skill-book-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 190, 80, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Kitap orta omurga / katlanma çizgisi */
.skill-book-container::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(10, 6, 2, 0.85) 0%, rgba(30, 20, 10, 0.3) 50%, rgba(10, 6, 2, 0.85) 100%);
    box-shadow: -1px 0 2px rgba(0, 0, 0, 0.5), 1px 0 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.skill-book-page {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-book-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(140, 111, 61, 0.35);
}

.skill-book-header b {
    color: #ffd978;
    font-size: 11px;
    font-weight: 900;
    text-shadow: 1px 1px 2px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-book-type {
    color: #e5a73b;
    font-size: 9px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
    flex-shrink: 0;
}

.skill-book-desc {
    margin: 3px 0 5px;
    min-height: 32px;
    color: #00ff66;
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4), 1px 1px 1px #000;
}

.skill-book-desc::-webkit-scrollbar {
    display: none !important;
}

.skill-book-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 3px;
    border-top: 1px dashed rgba(140, 111, 61, 0.4);
}

.skill-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
}

.skill-meta-row span {
    color: #d4a76a;
    font-weight: 700;
    text-shadow: 1px 1px 1px #000;
}

.skill-meta-row b {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
}

.skill-item.is-locked {
    opacity: 0.55;
    background: linear-gradient(180deg, #130f0c 0%, #0a0806 100%) !important;
    border-color: #241c16 !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.skill-item.is-locked:hover {
    background: linear-gradient(180deg, #19130e 0%, #0e0a07 100%) !important;
    border-color: #4a2820 !important;
}

.skill-item.is-locked .skill-icon-frame img:not(.skill-lock-icon-img) {
    filter: grayscale(90%) brightness(0.35) opacity(0.35);
}

.skill-lock-icon-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
    z-index: 4;
    pointer-events: none;
}

.skill-item-info em.is-locked-txt {
    color: #e05244 !important;
    font-weight: 800;
}

.skill-book-hint {
    margin-top: 5px;
    padding: 3px 5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(140, 111, 61, 0.25);
    font-size: 8.5px;
    color: #a89f91;
    text-align: center;
}

.skill-book-hint strong {
    color: #ffd978;
}

.skill-item.is-error-shake {
    animation: skillShake 0.28s ease;
}

@keyframes skillShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* ========================================================
   KLAN (CLAN) PANELİ (KNIGHT ONLINE GRADE 5 & CLAN WINDOW)
   ======================================================== */
.klan-panel {
    width: min(480px, calc(100vw - 20px));
    height: auto;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.klan-titlebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.klan-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(14, 12, 10, 0.95);
    box-sizing: border-box;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    color: #e2d9c8;
}

/* ========================================================
   1. KLANI OLMAYAN OYUNCU (KLAN OLUŞTURMA FORMU)
   ======================================================== */
.klan-create-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px;
}

.klan-create-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(30, 45, 80, 0.35) 0%, rgba(14, 12, 10, 0.8) 100%);
    border: 1px solid #2b3548;
    border-radius: 3px;
}

.klan-create-title-box h3 {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 800;
    color: #ffd978;
    text-shadow: 1px 1px 1px #000;
}

.klan-create-title-box p {
    margin: 0;
    font-size: 10px;
    color: #a89f91;
    line-height: 1.35;
}

.klan-create-reqs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: #090807;
    border: 1px solid #2b251e;
    border-radius: 2px;
}

.klan-req-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    padding: 2px 0;
}

.klan-req-row .req-label {
    color: #9c9282;
    font-weight: 700;
}

.klan-req-row .req-val.is-gold {
    color: #ffd978;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
}

.klan-req-row .req-val.is-noah.is-sufficient {
    color: #00ff66;
    font-weight: 800;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.4);
}

.klan-req-row .req-val.is-noah.is-deficient {
    color: #ff4d4d;
    font-weight: 800;
}

.klan-req-row .req-val {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.klan-req-row .req-noah-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.klan-create-form-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.klan-input-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #ffd978;
}

.klan-input-wrap input {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #3d3122;
    border-radius: 2px;
    background: #080706;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    outline: none;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
}

.klan-input-wrap input:focus {
    border-color: #ffd978;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 217, 120, 0.4);
}

.klan-create-message {
    padding: 4px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.klan-create-message.is-error {
    background: rgba(168, 52, 42, 0.25);
    border: 1px solid #a8342a;
    color: #ff857a;
}

.klan-create-message.is-success {
    background: rgba(46, 125, 50, 0.25);
    border: 1px solid #2e7d32;
    color: #79d2a6;
}

.klan-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #2b251e;
}

.klan-req-notice {
    font-size: 9.5px;
    flex: 1;
}

.klan-req-notice .req-ready {
    color: #a89f91;
}

.klan-req-notice .req-warning {
    color: #ff5252;
    font-weight: 800;
}

.is-create-btn {
    margin-left: auto;
    height: 28px;
    padding: 0 16px;
    border: 1px solid #d4a76a;
    border-radius: 2px;
    background: linear-gradient(180deg, #5c4323 0%, #2b1f10 100%);
    color: #ffd978;
    font-size: 11px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.35), 0 2px 4px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.is-create-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #78582f 0%, #3d2c17 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.5), 0 0 8px rgba(255, 217, 120, 0.4);
}

.is-create-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #4a3c2b;
    filter: grayscale(80%);
}

/* ========================================================
   2. KLANI OLAN OYUNCU (EKRAN GÖRÜNTÜSÜ BİREBİR KLAN ARAYÜZÜ)
   ======================================================== */
.klan-active-view {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Üst Kısım: Amblem & Duyuru */
.klan-top-section {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 8px;
    align-items: stretch;
}

.klan-badge-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #090807;
    border: 1px solid #2b251e;
    border-radius: 2px;
    padding: 6px 8px;
}

/* KO puanına göre Grade 5 -> Grade 1 klan arması */
.klan-crest-badge {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 3px;
    border: 1.5px solid #2563eb;
    background: radial-gradient(circle at 50% 35%, #1e3a8a 0%, #0f172a 65%, #020617 100%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5), inset 0 0 10px rgba(30, 58, 138, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.klan-crest-badge.is-grade-4 {
    border-color: #3b9b72;
    background: radial-gradient(circle at 50% 35%, #145a43 0%, #0c2f27 65%, #041612 100%);
    box-shadow: 0 0 10px rgba(59, 155, 114, .48), inset 0 0 10px rgba(20, 90, 67, .72);
}
.klan-crest-badge.is-grade-4 .crest-v { color:#d9ffed;text-shadow:0 0 6px #58d6a2,0 0 12px #23835f; }
.klan-crest-badge.is-grade-3 {
    border-color: #25a8b8;
    background: radial-gradient(circle at 50% 35%, #15566c 0%, #0b2d3d 65%, #03131b 100%);
    box-shadow: 0 0 10px rgba(37, 168, 184, .5), inset 0 0 10px rgba(21, 86, 108, .72);
}
.klan-crest-badge.is-grade-3 .crest-v { color:#dcfbff;text-shadow:0 0 6px #52dceb,0 0 12px #16899c; }
.klan-crest-badge.is-grade-2 {
    border-color: #9b68d8;
    background: radial-gradient(circle at 50% 35%, #53308b 0%, #281746 65%, #10071d 100%);
    box-shadow: 0 0 11px rgba(155, 104, 216, .54), inset 0 0 10px rgba(83, 48, 139, .75);
}
.klan-crest-badge.is-grade-2 .crest-v { color:#f0e4ff;text-shadow:0 0 6px #c18bff,0 0 13px #7540b8; }
.klan-crest-badge.is-grade-1 {
    border-color: #dfb84d;
    background: radial-gradient(circle at 50% 32%, #7a4d13 0%, #3b2208 62%, #160a02 100%);
    box-shadow: 0 0 13px rgba(223, 184, 77, .62), inset 0 0 11px rgba(122, 77, 19, .8);
}
.klan-crest-badge.is-grade-1 .crest-v { color:#fff1b7;text-shadow:0 0 6px #ffd86a,0 0 14px #b97518; }

.klan-crest-badge.is-large {
    width: 56px;
    height: 56px;
}

.crest-bg {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crest-wings-glow {
    position: absolute;
    inset: 4px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.crest-v {
    position: relative;
    z-index: 2;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 900;
    color: #e0f2fe;
    text-shadow: 0 0 6px #38bdf8, 0 0 12px #2563eb, 0 0 18px #1d4ed8;
    line-height: 1;
    letter-spacing: -1px;
}

.klan-crest-badge.is-large .crest-v {
    font-size: 32px;
}

.klan-identity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.klan-grade-text {
    font-size: 10px;
    color: #d8cfbe;
    font-weight: 700;
    white-space: nowrap;
}

.klan-name-text {
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.klan-rank-text {
    font-size: 10px;
    color: #c99846;
    font-weight: 800;
    white-space: nowrap;
}

/* Announcement (Duyuru Kutusu) */
.klan-announcement-box {
    display: flex;
    flex-direction: column;
    border: 1px solid #33281d;
    border-radius: 2px;
    background: #080706;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.klan-announcement-header {
    height: 18px;
    background: linear-gradient(180deg, #241b12 0%, #140f09 100%);
    border-bottom: 1px solid #33281d;
    color: #d8cfbe;
    font-size: 9.5px;
    font-weight: 800;
    text-align: center;
    line-height: 18px;
    letter-spacing: 0.3px;
}

.klan-announcement-content {
    flex: 1;
    padding: 4px 6px;
    min-height: 48px;
    display: flex;
}

.klan-notice-textarea {
    width: 100%;
    height: 100%;
    min-height: 44px;
    border: none;
    background: transparent;
    color: #ffd978;
    font-size: 10px;
    font-family: inherit;
    line-height: 1.35;
    resize: none;
    outline: none;
}

.klan-notice-textarea::placeholder {
    color: #5a5144;
}

.klan-notice-display {
    font-size: 10px;
    color: #c9bfb0;
    line-height: 1.35;
    word-break: break-word;
}

/* Orta Bar: Sayılar ve Aksiyonlar */
.klan-mid-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.klan-member-counts {
    font-size: 10px;
    font-weight: 800;
    color: #c4b9a5;
    letter-spacing: 0.2px;
}

.klan-member-counts .num-online,
.klan-member-counts .num-total {
    color: #ffd978;
}

.klan-ko-total {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8f8372;
    font-size: 9px;
}
.klan-ko-total b { color: #e7c965; font-size: 10px; }
.klan-ko-total span { color: #72685b; }

.klan-action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.klan-tool-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ko-btn-sm {
    height: 21px;
    padding: 0 10px;
    border: 1px solid #4a3925;
    border-radius: 2px;
    background: linear-gradient(180deg, #3d2f1f 0%, #1e160e 100%);
    color: #f0e6d2;
    font-size: 9.5px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.12s ease;
}

.ko-btn-sm:hover {
    border-color: #ffd978;
    color: #ffffff;
    background: linear-gradient(180deg, #4f3d28 0%, #2a2014 100%);
}

.ko-btn-sm.is-gold {
    border-color: #8c6f3d;
    background: linear-gradient(180deg, #4a3a24 0%, #2a1f12 100%);
    color: #ffd978;
}

.ko-btn-refresh {
    height: 21px;
    padding: 0 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #ffd978;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.12s ease;
}

.ko-btn-refresh:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 217, 120, 0.6);
}

.refresh-symbol {
    font-size: 13px;
    line-height: 1;
}

/* İç Davet Alanı */
.klan-inline-invite-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: #110e0a;
    border: 1px solid #3d2f1f;
    border-radius: 2px;
}

.klan-inline-invite-wrap input {
    flex: 1;
    height: 22px;
    padding: 0 6px;
    background: #060504;
    border: 1px solid #2b251e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    outline: none;
}

.klan-inline-invite-wrap input:focus {
    border-color: #ffd978;
}

/* Üye Tablosu */
.klan-table-container {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: #080705;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.95);
    scrollbar-width: thin;
    scrollbar-color: #55442e #0e0c09;
}

.klan-table-container::-webkit-scrollbar {
    width: 6px;
}

.klan-table-container::-webkit-scrollbar-track {
    background: #0e0c09;
}

.klan-table-container::-webkit-scrollbar-thumb {
    background: #55442e;
    border-radius: 2px;
}

.klan-members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    table-layout: fixed;
}

.klan-members-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.klan-members-table th {
    height: 20px;
    background: linear-gradient(180deg, #221a12 0%, #15100a 100%);
    border-bottom: 1px solid #332617;
    color: #a89f91;
    font-weight: 800;
    font-size: 9.5px;
    text-align: left;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.klan-members-table td {
    height: 23px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.clan-member-row {
    cursor: pointer;
    transition: background 0.1s ease;
}

.clan-member-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.clan-member-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.clan-member-row.is-selected {
    background: rgba(30, 60, 110, 0.5) !important;
    box-shadow: inset 0 0 0 1px #3b82f6;
}

.clan-member-row.is-self {
    background: rgba(140, 111, 61, 0.15);
}

.col-job {
    width: 32px;
    text-align: center;
}

.col-job .job-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

.col-pos {
    width: 60px;
    font-weight: 800;
}

.col-pos.is-leader {
    color: #00ff66;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.4);
}

.col-pos.is-member {
    color: #9c9488;
}

.col-pos.is-assistant {
    color: #6ec8ff;
    text-shadow: 0 0 4px rgba(110, 200, 255, 0.35);
}

.col-name {
    width: auto;
    font-weight: 800;
    color: #e2d9c8;
}

.col-name.is-leader {
    color: #00ff66;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.4);
}

.col-lv {
    width: 44px;
    font-weight: 800;
    color: #00ff66;
}

.col-memo {
    width: 65px;
    color: #7a7061;
}

.col-last {
    width: 80px;
    font-weight: 700;
}

.col-last.is-online {
    color: #00ff66;
}

.col-last.is-offline {
    color: #6d6457;
}

/* Alt Aksiyon Çubuğu */
.klan-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid #2b251e;
}

.klan-foot-left,
.klan-foot-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ko-foot-btn {
    height: 22px;
    padding: 0 8px;
    border: 1px solid #4a3a24;
    border-radius: 2px;
    background: linear-gradient(180deg, #3a2e1d 0%, #1e160d 100%);
    color: #ffd978;
    font-size: 9.5px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.15);
    transition: all 0.12s ease;
}

.ko-foot-btn:hover {
    color: #ffffff;
    border-color: #ffd978;
    background: linear-gradient(180deg, #4f3d28 0%, #2a2014 100%);
}

.ko-foot-btn.is-leave {
    border-color: #634334;
    color: #f1b399;
}

.ko-foot-btn.is-leave:hover {
    color: #ffffff;
    border-color: #e06d53;
}

.ko-foot-btn.is-disband {
    border-color: #702f2b;
    color: #ff9d94;
}

.ko-foot-btn.is-disband:hover {
    color: #ffffff;
    border-color: #ff5252;
}

.side-panel[hidden] {
    display: none !important;
}

.game-panel-title {
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 12px;
    gap: 8px;
    color: #f0e6d2;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.25)),
        url("/assets/ui/arkaplan/panel-ui.png") center / cover,
        #351c17;
    border-bottom: 1px solid #1e1b18;
}

.game-panel-title strong {
    flex: 1;
    font-size: 14px;
    font-weight: 900;
}

.game-panel-title button {
    width: 24px;
    height: 24px;
    border: 0;
    cursor: pointer;
    background: url("/assets/ui/baslik/x-close.png") center / 16px 16px no-repeat;
    opacity: 0.9;
    transition: opacity 0.15s, transform 0.1s;
}

.game-panel-title button:hover {
    opacity: 1;
    transform: scale(1.08);
}

.side-panel-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #ddd8cc;
}

.mob-list {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 8px;
}

.mob-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.map-page {
    display: none;
}

.map-page.is-active {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mob-card {
    height: 54px;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid #b5ae9f;
    border-radius: 4px;
    background: #e6e1d6;
    color: var(--panel-ink);
    cursor: pointer;
    text-align: left;
    width: 100%;
    outline: none;
    transition: background 0.12s, border-color 0.12s;
}

.mob-card:hover {
    background: #eee9df;
    border-color: #8f8271;
}

.mob-card.is-selected {
    background: #f1ebdd;
    border: 2px solid #e3b24f;
    box-shadow: inset 0 0 0 1px rgba(227, 178, 79, 0.25);
}

.mob-art {
    width: 38px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mob-art img {
    max-width: 38px;
    max-height: 44px;
    object-fit: contain;
}

.mob-art-letter {
    width: 34px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #5a534a, #2f2b26);
    color: #f2c14e;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #8f8271;
    border-radius: 4px;
}

.mob-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    justify-content: center;
}

.mob-card-name {
    color: #2f2b26;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-card-map {
    color: #8a8378;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.badge-farm {
    background-color: #3e7a3a;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid #1e4d24;
    border-radius: 3px;
    flex-shrink: 0;
}

.badge-level {
    width: 50px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2b2925;
    color: #f2c14e;
    font-weight: 900;
    font-size: 12px;
    border: 1px solid #1e1b18;
    border-radius: 3px;
    flex-shrink: 0;
}

.badge-level.is-underlevel {
    background-color: #8e2a22;
    color: #ffffff;
    border-color: #4e1410;
}

.mob-card.is-underlevel .mob-art img {
    opacity: 0.45;
}

.badge-level.is-locked {
    background-color: #a99f8d;
    color: #efebe2;
    border-color: #8a8378;
}

.mob-card.is-locked {
    background-color: #d6d1c5;
    border: 1px dashed #a99f8d;
    cursor: not-allowed;
}

.map-foot {
    height: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: #cfc9bc;
    border-top: 1px solid #b5ae9f;
}

.map-foot-label {
    color: #5a534a;
    font-size: 12px;
    font-weight: 900;
}

.map-foot-range {
    color: #2e7d32;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.map-select-wrapper {
    margin-left: auto;
    position: relative;
}

.map-select-dropdown {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(180deg, #6b4e38 0%, #3d291c 100%);
    color: #f5efe6;
    border: 1px solid #281a10;
    border-radius: 4px;
    padding: 3px 22px 3px 10px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.map-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: #e3b24f;
    font-size: 10px;
    pointer-events: none;
}

/* MOB DETAY PANELİ */
.mob-detail-hero {
    background: linear-gradient(135deg, #5a2a22 0%, #3a1c17 60%, #221210 100%);
    border-bottom: 1px solid #1e1b18;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mob-detail-art {
    width: 66px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mob-detail-art img {
    max-width: 66px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.mob-detail-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.mob-detail-title {
    margin: 0;
    color: #f3e9d2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-detail-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.mob-chip {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 3px;
    line-height: 14px;
}

.mob-chip-map {
    background: rgba(0, 0, 0, 0.5);
    color: #e6dcc8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mob-chip-level {
    background: #2b2925;
    color: #f2c14e;
    border: 1px solid #1e1b18;
}

.mob-chip-diff {
    background: #8a8378;
    color: #ffffff;
}

.mob-detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 10px;
    background: #ddd8cc;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mob-detail-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.drop-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drop-row {
    background: #efebe3;
    border: 1px solid #cfc8ba;
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.drop-slot {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid #c4bdaf;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drop-slot img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.drop-item-lv {
    position: absolute;
    left: 1px;
    bottom: 1px;
    font-size: 8px;
    font-weight: 900;
    color: #f2c14e;
    background: rgba(20, 18, 15, 0.9);
    padding: 0 2px;
    border-radius: 2px;
    line-height: 10px;
}

.drop-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.drop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.drop-name {
    color: #2a2621;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drop-rate {
    color: #5a4a36;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.drop-bar-wrap {
    width: 100%;
    height: 4px;
    background: #cfc9bc;
    border-radius: 2px;
    overflow: hidden;
}

.drop-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e3b24f 0%, #c98a1e 100%);
    border-radius: 2px;
}

.mob-detail-footer {
    background: #d3cdbf;
    border-top: 1px solid #b5ae9f;
    padding: 6px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.mob-state-text {
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    min-height: 16px;
    width: 100%;
}

.mob-state-text.is-farming {
    color: #2e7d32;
}

.mob-state-text.is-idle {
    color: #7a7266;
}

.mob-state-text.is-warn {
    color: #b03a2e;
}

.hex-btn-outer {
    width: calc(100% - 10px);
    height: 34px;
    padding: 1.5px;
    background: linear-gradient(180deg, #ead7b2 0%, #8f764c 100%);
    clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-btn {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    clip-path: polygon(9px 0%, calc(100% - 9px) 0%, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: filter 0.15s;
}

.hex-btn:hover:not(:disabled) {
    filter: brightness(1.1);
}

.hex-btn:active:not(:disabled) {
    filter: brightness(0.92);
}

.hex-btn.is-leave {
    background: linear-gradient(180deg, #a8a59c 0%, #6e6b64 100%);
}

.hex-btn.is-enter {
    background: linear-gradient(180deg, #86c9a2 0%, #3f8a66 100%);
}

.hex-btn.is-locked {
    background: linear-gradient(180deg, #b0564c 0%, #7a2e26 100%);
    cursor: not-allowed;
    opacity: 0.75;
}

.game-nav-item img {
    max-width: 31px;
    max-height: 31px;
    object-fit: contain;
    filter: drop-shadow(0 1px 0 #000);
}

.game-nav-item:hover,
.game-nav-item.is-active {
    color: #ffd978;
}

.game-nav-item:hover img,
.game-nav-item.is-active img {
    filter: drop-shadow(0 0 7px rgba(255, 217, 120, 0.72));
}

@media (max-width: 760px) {
    .game-stage {
        min-height: 620px;
        padding: 0;
    }

    .game-nav {
        right: 6px;
        bottom: 6px;
        max-width: calc(100vw - 16px);
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .game-chat {
        left: 6px;
        bottom: 86px;
        width: min(360px, calc(100vw - 12px));
    }

    .game-modal-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: none;
    }

    .game-modal-container::-webkit-scrollbar {
        display: none !important;
    }

    .warp-list-panel,
    .bolum-panel,
    .karakter-panel {
        position: static;
        width: min(290px, calc(100vw - 24px));
        max-height: 480px;
    }
}

/* Gamemaster ortak "Yeni Düzen": sohbet ve log solda, 14 menü sağda 7x2. */
body.gm-shared-new-layout .ko-chat-zone {
    left: 8px;
    bottom: 8px;
}

body.gm-shared-new-layout .ko-chat-bottom-row,
body.gm-shared-new-layout .ko-bottom-menu {
    display: none !important;
}

body.gm-shared-new-layout .ko-log-zone {
    left: 458px;
    right: auto;
    bottom: 8px;
}

.ko-new-menu-grid {
    position: fixed;
    z-index: 29;
    right: 8px;
    bottom: 8px;
    width: 350px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(2, 42px);
    gap: 4px 2px;
    pointer-events: auto;
}

.ko-new-menu-grid .ko-menu-item,
.ko-new-menu-grid .ko-menu-item:hover,
.ko-new-menu-grid .ko-menu-item:active,
.ko-new-menu-grid .ko-menu-item.is-active {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 2px 1px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ko-new-menu-grid .ko-menu-icon-wrap {
    width: 24px;
    height: 24px;
}

.ko-new-menu-grid .ko-menu-icon-wrap img {
    max-width: 24px;
    max-height: 24px;
}

.ko-new-menu-grid .ko-menu-label {
    color: #e0dcd7;
    font-size: 8px;
}

.ko-new-menu-grid .ko-menu-item:hover .ko-menu-label,
.ko-new-menu-grid .ko-menu-item.is-active .ko-menu-label {
    color: #f0ddd0;
}

.settings-hide-mini .ko-new-menu-grid {
    display: none !important;
}

@media (max-width: 1120px) {
    body.gm-shared-new-layout .ko-log-zone {
        left: auto;
        right: 8px;
        bottom: 102px;
    }
}

@media (max-width: 520px) {
    .auth-stage {
        padding: 10px;
    }

    .auth-shell {
        width: 100%;
        height: min(610px, calc(100vh - 20px));
    }

    .hero-band {
        height: 190px;
    }

    .password-row.two-col {
        grid-template-columns: 1fr;
    }

    .link-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================================
   ANVIL (ÖRS) — KNIGHT ONLINE ITEM YÜKSELTME PENCERESİ
   ======================================================== */
.anvil-panel {
    --anvil-slot: 40px;
    width: min(296px, calc(100vw - 20px));
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.anvil-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
    background: rgba(14, 12, 10, 0.95);
}

.anvil-work {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: linear-gradient(180deg, #171310 0%, #0c0a08 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.85);
}

.anvil-mat-grid {
    display: grid;
    grid-template-columns: repeat(3, var(--anvil-slot));
    grid-auto-rows: var(--anvil-slot);
    gap: 3px;
}

.anvil-slot,
.anvil-bag-cell {
    position: relative;
    width: var(--anvil-slot);
    height: var(--anvil-slot);
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: #080706;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.anvil-slot:hover,
.anvil-bag-cell.has-item:hover {
    border-color: #ffd978;
}

.anvil-slot img,
.anvil-bag-cell img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    pointer-events: none;
}

.anvil-item-slot,
.anvil-result-slot {
    --anvil-slot: 46px;
    border-color: #4a3925;
}

.anvil-result-slot {
    cursor: default;
}

.anvil-slot.has-item,
.anvil-bag-cell.has-item {
    background: #120f0c;
    border-color: #8c6f3d;
}

.anvil-result-slot.is-preview img {
    opacity: 0.55;
}

.anvil-result-slot.is-success {
    border-color: #3fd46b;
    box-shadow: inset 0 0 10px rgba(63, 212, 107, 0.45), 0 0 8px rgba(63, 212, 107, 0.35);
}

.anvil-result-slot.is-protected {
    border-color: #ffd978;
    box-shadow: inset 0 0 10px rgba(255, 217, 120, 0.35);
}

.anvil-result-slot.is-destroyed {
    border-color: #ff4d4d;
    box-shadow: inset 0 0 10px rgba(255, 77, 77, 0.45), 0 0 8px rgba(255, 77, 77, 0.35);
}

.anvil-plus,
.anvil-count {
    position: absolute;
    bottom: 1px;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
    pointer-events: none;
}

.anvil-plus {
    left: 3px;
    color: #ffd978;
}

.anvil-count {
    right: 3px;
    color: #fff;
}

.anvil-bag-cell.is-reserved img {
    opacity: 0.3;
}

.anvil-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.anvil-btn {
    height: 22px;
    border: 1px solid #6b2a22;
    border-radius: 2px;
    background: linear-gradient(180deg, #6e1d17 0%, #3a0d0a 100%);
    color: #f3e3c4;
    font-size: 10.5px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.anvil-btn:hover:not(:disabled) {
    border-color: #ffd978;
    color: #fff;
}

.anvil-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.anvil-bag {
    padding: 6px;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: #0c0a08;
}

.anvil-bag-grid {
    display: grid;
    grid-template-columns: repeat(6, var(--anvil-slot));
    grid-auto-rows: var(--anvil-slot);
    gap: 4px;
    justify-content: center;
}

.anvil-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 6px;
    color: #ffd978;
    font-size: 11px;
}

.anvil-footer img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* --- Anvil basma animasyonları --- */
.anvil-slot {
    overflow: visible;
}

.is-shake {
    animation: anvilShake 0.35s ease;
}

@keyframes anvilShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Örs ısınıyor: çalışma alanı nabız gibi parlar, item çekiçlenir, malzemeler titrer */
.anvil-work.is-forging {
    animation: anvilHeat 0.5s ease-in-out infinite alternate;
}

@keyframes anvilHeat {
    from { box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.85), 0 0 0 rgba(255, 140, 40, 0); }
    to { box-shadow: inset 0 0 26px rgba(255, 120, 30, 0.35), 0 0 12px rgba(255, 140, 40, 0.35); }
}

.anvil-work.is-forging .anvil-item-slot {
    border-color: #ff9a3c;
    animation: anvilHammer 0.3s ease-in-out infinite;
}

.anvil-work.is-forging .anvil-item-slot img {
    filter: brightness(1.6) drop-shadow(0 0 6px #ffb347);
}

@keyframes anvilHammer {
    0%, 100% { transform: translateY(0) scale(1); }
    45% { transform: translateY(2px) scale(0.94); }
    55% { transform: translateY(-1px) scale(1.04); }
}

.anvil-work.is-forging .anvil-mat-grid .anvil-slot.has-item {
    animation: anvilMatBurn 0.45s ease-in-out infinite alternate;
}

@keyframes anvilMatBurn {
    from { border-color: #8c6f3d; box-shadow: inset 0 0 4px rgba(255, 180, 80, 0.2); }
    to { border-color: #ffd978; box-shadow: inset 0 0 12px rgba(255, 170, 60, 0.7); }
}

/* Kıvılcımlar */
.anvil-spark-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
}

.anvil-spark-layer i {
    position: absolute;
    left: -2px;
    top: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffe9a8;
    box-shadow: 0 0 6px 2px rgba(255, 170, 50, 0.9);
    opacity: 0;
}

.anvil-spark-layer.is-forge i {
    animation: anvilSpark 0.55s ease-out infinite;
}

.anvil-spark-layer.is-success i {
    background: #fff6c8;
    box-shadow: 0 0 8px 3px rgba(255, 215, 90, 0.95);
    animation: anvilSpark 0.8s ease-out 1 forwards;
}

@keyframes anvilSpark {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* Sonuç */
.anvil-result-slot.is-reveal img {
    animation: anvilReveal 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes anvilReveal {
    from { transform: scale(0.2); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.anvil-result-slot.is-success {
    animation: anvilSuccessGlow 1.2s ease-out;
}

@keyframes anvilSuccessGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 217, 120, 0.9), inset 0 0 18px rgba(255, 217, 120, 0.9); }
    100% { box-shadow: 0 0 0 16px rgba(255, 217, 120, 0), inset 0 0 10px rgba(63, 212, 107, 0.45); }
}

.anvil-result-slot.is-destroyed img {
    animation: anvilBurn 1.1s ease-in forwards;
}

/* Başarısız deneme: item yanmaz, kırmızı çerçeveyle sarsılır ve olduğu gibi kalır */
.anvil-result-slot.is-failed {
    border-color: #ff4d4d !important;
    box-shadow: inset 0 0 10px rgba(255, 77, 77, 0.45), 0 0 8px rgba(255, 77, 77, 0.35) !important;
}

.anvil-result-slot.is-failed img {
    animation: anvilFailShake 0.5s ease-in-out;
}

@keyframes anvilFailShake {
    0%, 100% { transform: translateX(0); filter: none; }
    20% { transform: translateX(-3px); filter: brightness(1.4) sepia(0.6) hue-rotate(-30deg); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

@keyframes anvilBurn {
    0% { filter: brightness(2) sepia(1) saturate(4) hue-rotate(-20deg); opacity: 1; transform: scale(1.1); }
    60% { filter: brightness(0.6) sepia(1) saturate(6) hue-rotate(-30deg); opacity: 0.8; }
    100% { filter: grayscale(1) brightness(0.3); opacity: 0.25; transform: scale(0.85); }
}

.anvil-result-slot.is-protected img {
    animation: anvilReveal 0.45s cubic-bezier(0.2, 1.6, 0.4, 1), anvilProtect 0.9s ease-out;
}

@keyframes anvilProtect {
    0%, 40% { filter: drop-shadow(0 0 8px #ffd978) brightness(1.4); }
    100% { filter: none; }
}

/* Çalışma alanı sonuç flaşı */
.anvil-work::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
}

.anvil-work.flash-success::after {
    background: radial-gradient(circle at 85% 50%, rgba(255, 230, 140, 0.55), transparent 60%);
    animation: anvilFlash 0.7s ease-out;
}

.anvil-work.flash-destroyed::after {
    background: radial-gradient(circle at 85% 50%, rgba(255, 60, 40, 0.55), transparent 65%);
    animation: anvilFlash 0.7s ease-out;
}

.anvil-work.flash-protected::after {
    background: radial-gradient(circle at 85% 50%, rgba(255, 200, 80, 0.35), transparent 60%);
    animation: anvilFlash 0.7s ease-out;
}

.anvil-work.flash-destroyed {
    animation: anvilShake 0.4s ease;
}

@keyframes anvilFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .anvil-work.is-forging,
    .anvil-work.is-forging .anvil-item-slot,
    .anvil-work.is-forging .anvil-mat-grid .anvil-slot.has-item,
    .anvil-spark-layer i {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

/* --- Arkadaş/klan avatarları: çerçevesiz sınıf ikonu --- */
.friend-avatar,
.friend-avatar.is-warrior,
.friend-avatar.is-rogue,
.friend-avatar.is-mage {
    border: none;
    border-radius: 0;
    background: none;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px #000);
}

.friend-meta b {
    font-size: 12px;
}

.col-job .job-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 1px #000);
}

/* --- Sağ üst kartlar: her satır tek renk (logout yeşil, premium açık kırmızı, bilgi mavimsi) --- */
.ko-server-card.is-logout .ko-card-text,
.ko-server-card.is-logout:hover .ko-card-text {
    color: #6fe07a;
}

.ko-server-card.is-premium .ko-card-text {
    color: #ff8c8c;
}

.ko-server-card.is-info .ko-card-text {
    color: #8fc4ff;
    font-family: inherit;
    letter-spacing: 0.6px;
}

/* --- Oyuncu listesi: sol çubuk yok, liste soldan başlar --- */
.ko-nearby-content {
    flex: 1;
    min-width: 0;
}

/* ========================================================
   ORTAK PENCERE BUTONLARI (Mektup / Görev)
   ======================================================== */
.mail-btn,
.quest-btn,
.quest-tab {
    height: 24px;
    padding: 0 10px;
    border: 1px solid #4a3925;
    border-radius: 2px;
    background: linear-gradient(180deg, #2b221a 0%, #120e0a 100%);
    color: #e8ddc6;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
}

.quest-tab.is-active {
    border-color: #3fbf8f;
    background: linear-gradient(180deg, #1f5a45 0%, #0e2a20 100%);
    color: #7dffc8;
}

.mail-btn:hover:not(:disabled),
.quest-btn:hover:not(:disabled),
.quest-tab:hover {
    border-color: #ffd978;
    color: #fff;
}

.mail-btn.is-green,
.quest-btn.is-green {
    border-color: #3c7a3a;
    background: linear-gradient(180deg, #2d5e22 0%, #122a0d 100%);
    color: #d8ffc0;
}

.mail-btn.is-red,
.quest-btn.is-red {
    border-color: #6b2a22;
    background: linear-gradient(180deg, #6e1d17 0%, #3a0d0a 100%);
    color: #f3e3c4;
}

.mail-btn:disabled,
.quest-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

/* ========================================================
   MEKTUP (POSTA KUTUSU)
   ======================================================== */
.mail-panel {
    width: min(340px, calc(100vw - 20px));
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.mail-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
    background: rgba(14, 12, 10, 0.95);
}

.mail-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border: 1px solid #4a3925;
    border-radius: 3px;
    background: linear-gradient(180deg, #2a2118 0%, #15100b 100%);
}

.mail-head img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.mail-head div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mail-head b {
    color: #ffd978;
    font-size: 12px;
}

.mail-head span {
    color: #b8ad98;
    font-size: 10.5px;
}

.mail-view {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 318px;
}

.mail-view[hidden] {
    display: none;
}

.mail-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mail-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 4px 8px 4px 4px;
    border: 1px solid #2f2820;
    border-radius: 3px;
    background: linear-gradient(90deg, #17130f 0%, #0d0b09 100%);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.mail-row:hover {
    border-color: #8c6f3d;
    background: linear-gradient(90deg, #211a13 0%, #110e0b 100%);
}

.mail-row.is-new {
    border-color: #2f5a4a;
}

.mail-row.is-read {
    opacity: 0.72;
}

.mail-slot {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #3a322a;
    border-radius: 4px;
    background: #14110e;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.mail-slot.has-item {
    border-color: #8c6f3d;
}

.mail-slot img {
    width: 100%;
    height: 100%;
    padding: 3px;
    box-sizing: border-box;
    object-fit: contain;
    pointer-events: none;
}

.mail-slot-count,
.mail-slot-plus {
    position: absolute;
    bottom: 1px;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000, -1px -1px 1px #000;
    pointer-events: none;
}

.mail-slot-count {
    right: 3px;
    color: #fff;
}

.mail-slot-plus {
    top: 1px;
    bottom: auto;
    left: 3px;
    color: #ffd978;
}

.mail-row-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 10.5px;
    line-height: 1.35;
    color: #b8ad98;
}

.mail-row-text b {
    color: #4fe0b0;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-row.is-read .mail-row-text b {
    color: #d9d0bf;
}

.mail-new-tag {
    margin-left: auto;
    padding: 1px 5px;
    border-radius: 2px;
    background: #1f5a45;
    color: #7dffc8;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.mail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8c8273;
    font-size: 11px;
}

.mail-empty img {
    width: 48px;
    opacity: 0.5;
}

.mail-pager {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e8ddc6;
    font-size: 11px;
    font-weight: 700;
}

.mail-page-btn {
    width: 22px;
    height: 20px;
    border: 1px solid #8c6f3d;
    border-radius: 2px;
    background: linear-gradient(180deg, #d8a032 0%, #7a4f12 100%);
    color: #1a1208;
    font-size: 10px;
    cursor: pointer;
}

.mail-count {
    position: absolute;
    right: 0;
    color: #ffe7a8;
    font-size: 10.5px;
}

/* Mektup detayı: parşömen kâğıdı */
.mail-letter {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 10px;
    border: 1px solid #8c6f3d;
    border-radius: 3px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
        linear-gradient(180deg, #e9dcc0 0%, #d8c6a0 100%);
    box-shadow: inset 0 0 18px rgba(120, 80, 30, 0.45), 0 2px 8px rgba(0, 0, 0, 0.6);
    color: #3a2c1a;
}

.mail-letter-head {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(90, 60, 25, 0.35);
}

.mail-letter-head b {
    display: block;
    color: #5a2a10;
    font-size: 13px;
}

.mail-letter-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    color: #6e5636;
    font-size: 10.5px;
}

.mail-letter-meta em {
    font-style: normal;
    font-weight: 800;
    color: #3a2c1a;
}

.mail-letter-text {
    flex: 1;
    min-height: 110px;
    font-size: 11.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.mail-letter-sign {
    align-self: flex-end;
    color: #6e5636;
    font-size: 11px;
    font-style: italic;
}

.mail-attach {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px;
    border: 1px solid #4a3925;
    border-radius: 3px;
    background: #110e0b;
}

.mail-attach[hidden] {
    display: none;
}

.mail-attach-text {
    display: flex;
    flex-direction: column;
    font-size: 10.5px;
    color: #b8ad98;
}

.mail-attach-text b {
    color: #ffe7a8;
    font-size: 11.5px;
}

.mail-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.ko-menu-item {
    position: relative;
}

.ko-menu-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    background: #d23a2a;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 0 0 1px #000;
    pointer-events: none;
}

.ko-menu-badge[hidden] {
    display: none;
}

/* ========================================================
   GÖREVLER
   ======================================================== */
/* ========================================================
   GÜNLÜK GÖREVLER (DAILY QUEST BOARD TABLE)
   Knight Online Şablonu & Teması
   ======================================================== */
.quest-panel {
    position: relative;
    width: min(780px, calc(100vw - 20px));
    max-height: min(580px, calc(100vh - 60px));
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.quest-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px 8px;
    background: rgba(14, 12, 10, 0.94);
    box-sizing: border-box;
}

/* Üst Çubuk: Sekmeler, Ortada Görev Sayacı ve Sağda Bölge Filtresi */
.quest-board-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px;
    background: #0e0c0a;
    border: 1px solid #2b251e;
    border-radius: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.quest-board-topbar .quest-tabs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.quest-board-topbar .quest-tabs .ko-tab-btn {
    height: 22px;
    line-height: 20px;
    padding: 0 12px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border: 1px solid #3a332a;
    border-radius: 2px;
    background: linear-gradient(180deg, #1c1813 0%, #110f0c 100%);
    color: #a89f91;
    cursor: pointer;
    text-shadow: 1px 1px 1px #000;
    transition: all 0.12s;
    white-space: nowrap;
}

.quest-board-topbar .quest-tabs .ko-tab-btn:hover {
    border-color: #5a4b35;
    color: #ded4bf;
}

.quest-board-topbar .quest-tabs .ko-tab-btn.is-active {
    color: #ffd978;
    border-color: #8c6f3d;
    background: linear-gradient(180deg, #362919 0%, #1a140b 100%);
    box-shadow: inset 0 0 5px rgba(255, 217, 120, 0.35);
    text-shadow: 0 0 4px rgba(255, 217, 120, 0.4), 1px 1px 1px #000;
}

/* Sekmeler ile Bölge Filtresi Arasında Uzayan Sayaç Kartı */
.quest-count-badge {
    flex: 1;
    text-align: center;
    border: 1px solid #3a332a;
    background: linear-gradient(180deg, #1c1813 0%, #110f0c 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    height: 22px;
    line-height: 20px;
    border-radius: 2px;
    margin: 0 4px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
}

.quest-zone-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #d8cfbe;
    font-weight: 700;
    flex-shrink: 0;
}

.quest-zone-select {
    height: 22px;
    background: #16120e;
    border: 1px solid #4a3925;
    color: #ffd978;
    font-weight: 700;
    font-size: 11px;
    padding: 0 6px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.quest-zone-select:focus {
    border-color: #8c6f3d;
}

/* Görev Tablo Çerçevesi */
.quest-table-container {
    flex: 1;
    min-height: 300px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #3a2e22;
    border-radius: 2px;
    background: rgba(10, 8, 7, 0.9);
    position: relative;
}

.quest-board-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
    color: #e0d5c1;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

.quest-board-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.quest-board-table th {
    background: #191613;
    color: #ffffff !important;
    padding: 6px 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #4a3925;
    text-align: center;
    white-space: nowrap;
    text-shadow: 1px 1px 1px #000;
}

.quest-board-table td {
    padding: 5px 4px;
    border-bottom: 1px solid rgba(74, 57, 37, 0.35);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.quest-board-table tr:nth-child(even) td {
    background: rgba(20, 16, 13, 0.5);
}

.quest-board-table tr:nth-child(odd) td {
    background: rgba(12, 10, 8, 0.5);
}

.quest-board-table tr:hover td {
    background: rgba(58, 44, 28, 0.65);
}

.quest-board-table tr.is-ready-row td {
    background: rgba(65, 52, 22, 0.5);
}

.quest-board-table tr.is-done-row td {
    opacity: 0.52;
}

/* Sütun Genişlikleri ve Hizalamaları (Hizalama ve Kayma Sorunu Düzeltildi) */
.quest-board-table .col-num,
.quest-board-table .td-num {
    width: 34px;
    text-align: center;
    color: #a89f91;
    font-weight: 700;
}

.quest-board-table .col-zone,
.quest-board-table .td-zone {
    width: 105px;
    text-align: center;
    color: #ded4bf;
    font-weight: 600;
}

.quest-board-table .col-name,
.quest-board-table .td-name {
    text-align: left;
    padding-left: 12px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
    transition: color 0.15s ease;
}

.quest-board-table tr:hover .td-name {
    color: #ffd978;
    text-decoration: underline;
}

.quest-board-table .col-level,
.quest-board-table .td-level {
    width: 75px;
    text-align: center;
    color: #eae5d9;
    font-weight: 700;
}

.quest-board-table .col-reward,
.quest-board-table .td-reward {
    width: 105px;
    text-align: center;
}

.quest-board-table .col-action,
.quest-board-table .td-action {
    width: 160px;
    text-align: center;
}

/* Ödül Rozeti: Sütun ortasında, ikon ve sayı tek hizada */
.quest-reward-pill {
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: none;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    margin: 0 auto;
    vertical-align: middle;
}

.quest-reward-pill img,
.quest-reward-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.quest-reward-pill span,
.quest-reward-val {
    font-size: 11px;
    font-weight: 800;
    color: #ffd978;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
}

/* Durum İlerleme Barı: Belirgin koyu yuva arka planı, ortalanmış etiket */
.quest-prog-cell {
    width: 145px;
    height: 20px;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
}

.quest-prog-bar {
    width: 100%;
    height: 100%;
    background: #14100c;
    border: 1px solid #4a3825;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85);
}

.quest-prog-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        #1d5ba1 0%,
        #3d8ee0 30%,
        #79c3ff 50%,
        #3d8ee0 70%,
        #1d5ba1 100%
    );
    background-size: 200% 100%;
    animation: quest-bar-loading 2s linear infinite;
    transition: width 0.3s ease;
}

@keyframes quest-bar-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.quest-prog-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px #000, 0 0 4px #000;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.4px;
}

/* Durum: Ödülü Al Butonu & Tamamlandı */
.quest-action-btn.is-claim {
    width: 145px;
    height: 20px;
    line-height: 18px;
    padding: 0;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 2px;
    cursor: pointer;
    text-shadow: 1px 1px 1px #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: linear-gradient(180deg, #593f1c 0%, #2e200e 100%);
    border: 1px solid #a98737;
    color: #ffd978;
    box-shadow: 0 0 8px rgba(255, 217, 120, 0.4);
    animation: quest-claim-pulse 1.8s ease-in-out infinite;
    user-select: none;
}

@keyframes quest-claim-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 217, 120, 0.3); border-color: #a98737; }
    50% { box-shadow: 0 0 10px rgba(255, 217, 120, 0.7); border-color: #ffd978; }
}

.quest-status.is-claimed {
    width: 145px;
    height: 20px;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #8c8273;
    padding: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    border: 1px solid #2b251e;
    box-sizing: border-box;
}

/* ============================================================
   MOB DETAYLARI KARTI (SERBEST VE TAŞINABİLİR DRAGGABLE PENCERE)
   ============================================================ */
.ko-mob-detail-card {
    position: fixed;
    z-index: 10050;
    width: 260px;
    background: #0c0a08;
    border: 1px solid #3a3024;
    outline: none;
    box-shadow: 0 12px 32px #0009;
    border-radius: 0;
    animation: ko-mob-pop 0.16s ease-out;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
}

.ko-mob-detail-card[hidden] {
    display: none !important;
}

.ko-mob-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    padding: 0 0 0 8px;
    background: #191610;
    border-bottom: 1px solid #33291e;
    box-shadow: none;
    box-sizing: border-box;
    cursor: move;
}

.ko-mob-titlebar strong {
    color: #ffd978;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.ko-mob-titlebar button[data-mob-preview-close] {
    width: 14px;
    height: 14px;
    background: #3e1e1a;
    border: 1px solid #78352a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.12s, border-color 0.12s;
}

.ko-mob-titlebar button[data-mob-preview-close]::before {
    content: '×';
    font-size: 11px;
    line-height: 1;
}

.ko-mob-titlebar button[data-mob-preview-close]:hover {
    background: #612720;
    border-color: #a84737;
    color: #ffd978;
}

.ko-mob-card-content {
    background: #0c0a08;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.ko-mob-header-bar {
    width: 100%;
    background: #050403;
    border-top: 0;
    border-bottom: 1px solid #33291e;
    padding: 4px 6px;
    text-align: center;
    box-sizing: border-box;
}

.ko-mob-header-bar .ko-mob-preview-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px #000;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ko-mob-preview-viewport {
    width: 242px;
    height: 200px;
    margin: 4px auto;
    background: radial-gradient(circle at center, #14100c 0%, #000000 80%);
    border: 1px solid #2b2216;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ko-mob-preview-canvas {
    width: 242px;
    height: 200px;
    display: block;
}

.ko-mob-preview-img {
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
}

.ko-mob-prog-wrapper {
    width: calc(100% - 12px) !important;
    height: 22px !important;
    margin: 6px auto 4px !important;
    box-sizing: border-box;
}

/* Görev Hücresi Başlık & Açıklama */
.quest-cell-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.25;
    padding: 2px 0;
}

.quest-title-text {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.quest-desc-text {
    color: #a89f91;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quest-board-table tr:hover .quest-title-text {
    color: #ffd978;
    text-decoration: underline;
}

.quest-board-table tr:hover .quest-desc-text {
    color: #ffd978;
    opacity: 0.85;
}

.quest-prog-bar.is-completed {
    border-color: #8c6f3d;
    box-shadow: 0 0 6px rgba(255, 217, 120, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.85);
}

.quest-prog-bar.is-completed i {
    background: linear-gradient(180deg, #ffd978 0%, #d4a034 50%, #946917 100%) !important;
    box-shadow: 0 0 8px rgba(255, 217, 120, 0.6) !important;
}

.quest-empty {
    padding: 40px 10px;
    text-align: center;
    color: #8c8273;
    font-size: 12px;
    font-weight: 600;
}



/* ========================================================
   YÜKLEME EKRANI (açılış görseli + sinematik Gate barı)
   ======================================================== */
.ko-loading {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #050302;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.ko-loading.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s;
}

.ko-loading-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/ui/giris/acilis.webp') center top / cover no-repeat;
    transform-origin: center top;
    animation: koLoadingZoom 18s ease-in-out infinite alternate;
}

@keyframes koLoadingZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.ko-loading-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.74) 100%),
        linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 42%, rgba(0, 0, 0, 0.74) 100%);
}

.ko-loading-frame {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(180, 170, 160, 0.22);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.ko-loading-frame::before,
.ko-loading-frame::after {
    position: absolute;
    width: 56px;
    height: 56px;
    content: '';
    border-color: rgba(210, 198, 188, 0.42);
    border-style: solid;
    pointer-events: none;
}

.ko-loading-frame::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.ko-loading-frame::after {
    right: -1px;
    bottom: -1px;
    border-width: 0 2px 2px 0;
}

.ko-loading-brand {
    position: absolute;
    top: clamp(42px, 7vh, 88px);
    left: clamp(44px, 7vw, 126px);
    display: grid;
    gap: 8px;
    color: #e5d8cf;
    text-shadow: 0 3px 18px #000, 0 0 24px rgba(178, 56, 42, 0.34);
}

.ko-loading-brand strong {
    position: relative;
    font: 400 clamp(42px, 5vw, 86px)/0.9 Georgia, 'Times New Roman', serif;
    letter-spacing: 14px;
}

.ko-loading-brand strong::before {
    position: absolute;
    z-index: -1;
    top: -34px;
    left: 50%;
    width: 76px;
    height: 132px;
    content: '';
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(185, 35, 28, 0.82), rgba(185, 35, 28, 0.22) 42%, transparent 68%);
    filter: blur(1px);
}

.ko-loading-brand span {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #c6b9b1;
    font: 13px/1 Georgia, 'Times New Roman', serif;
    letter-spacing: 10px;
}

.ko-loading-brand span::before,
.ko-loading-brand span::after {
    width: 74px;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(205, 193, 184, .7), transparent);
}

.ko-loading-dock {
    position: absolute;
    left: 50%;
    bottom: clamp(42px, 8vh, 92px);
    display: grid;
    width: min(1060px, calc(100vw - 80px));
    gap: 18px;
    transform: translateX(-50%);
    color: #e5d8cf;
    text-align: center;
}

.ko-loading-tip {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-shadow: 0 2px 12px #000;
}

.ko-loading-tip div {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
    align-items: center;
    width: min(520px, 80vw);
    gap: 20px;
    color: #e8ddd4;
    font: 22px/1 Georgia, 'Times New Roman', serif;
}

.ko-loading-tip i {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205, 193, 184, .58), transparent);
}

.ko-loading-tip span::before {
    content: '◇';
    margin-right: 14px;
    color: #b9aca4;
    font-size: 18px;
}

.ko-loading-tip p {
    max-width: 700px;
    min-height: 22px;
    margin: 0;
    color: #d9cdc4;
    font: 18px/1.45 Georgia, 'Times New Roman', serif;
}

.ko-loading-bar {
    position: relative;
    height: 26px;
    border: 1px solid rgba(160, 147, 135, 0.45);
    background: linear-gradient(180deg, rgba(3, 3, 4, 0.68), rgba(11, 8, 8, 0.88));
    box-shadow: 0 0 0 1px rgba(0,0,0,.85), inset 0 0 0 3px rgba(0,0,0,.58), 0 0 32px rgba(0,0,0,.72);
    overflow: visible;
}

.ko-loading-bar::before,
.ko-loading-bar::after {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    content: '';
    border: 1px solid rgba(196, 184, 171, 0.58);
    background: rgba(8, 7, 7, 0.9);
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 0 3px rgba(0,0,0,.35);
}

.ko-loading-bar::before {
    left: -10px;
}

.ko-loading-bar::after {
    right: -10px;
}

.ko-loading-fill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 7px;
    width: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .2), transparent 12%, transparent 88%, rgba(255,255,255,.16)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px 28px),
        linear-gradient(180deg, #e64032 0%, #9d1414 56%, #4e0708 100%);
    background-size: 100% 100%, 44px 100%, 100% 100%;
    box-shadow: inset 0 1px 0 rgba(255, 190, 170, 0.72), 0 0 16px rgba(200, 20, 20, 0.45);
    animation: koLoadingStripes 0.9s linear infinite;
}

@keyframes koLoadingStripes {
    from { background-position: 0 0, 0 0; }
    to { background-position: 40px 0, 0 0; }
}

.ko-loading-glow {
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    width: 34px;
    margin-left: -17px;
    background: radial-gradient(ellipse at center, rgba(255, 110, 78, 0.82) 0%, rgba(188, 19, 18, 0.48) 42%, transparent 72%);
    filter: blur(1px);
    pointer-events: none;
}

.ko-loading-percent {
    display: block;
    position: relative;
    color: #cfc4bd;
    font: 24px/1 Georgia, 'Times New Roman', serif;
    text-shadow: 0 2px 12px #000;
}

.ko-loading-percent::before,
.ko-loading-percent::after {
    display: inline-block;
    width: min(220px, 24vw);
    height: 1px;
    margin: 0 18px 7px;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(205, 193, 184, .48), transparent);
}

@media (prefers-reduced-motion: reduce) {
    .ko-loading-bg,
    .ko-loading-fill {
        animation: none;
    }
}

@media (max-width: 760px) {
    .ko-loading-frame {
        inset: 10px;
    }

    .ko-loading-brand {
        top: 32px;
        left: 24px;
    }

    .ko-loading-brand strong {
        font-size: 34px;
        letter-spacing: 7px;
    }

    .ko-loading-brand span {
        gap: 10px;
        font-size: 9px;
        letter-spacing: 4px;
    }

    .ko-loading-brand span::before,
    .ko-loading-brand span::after {
        width: 34px;
    }

    .ko-loading-dock {
        width: calc(100vw - 46px);
        bottom: 34px;
        gap: 14px;
    }

    .ko-loading-tip div {
        gap: 12px;
        font-size: 17px;
    }

    .ko-loading-tip p {
        font-size: 14px;
    }

    .ko-loading-percent {
        font-size: 19px;
    }
}

/* Klan penceresi: yenile butonu (dönen ikon) */
.ko-foot-btn.is-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ko-foot-btn.is-refresh .refresh-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ko-foot-btn.is-refresh.is-spinning .refresh-icon {
    animation: koRefreshSpin 0.7s linear infinite;
}

.ko-foot-btn.is-refresh:hover .refresh-icon {
    transform: rotate(-40deg);
}

@keyframes koRefreshSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================================
   ITEM GÖRSELLERİ SLOTA TAM OTURUR (çanta, ekipman, anvil)
   ======================================================== */
.inventory-slot {
    overflow: hidden;
}

.inventory-slot.has-item img,
.anvil-bag-cell.has-item img,
.anvil-slot.has-item img {
    width: 100%;
    height: 100%;
    padding: 2px;
    box-sizing: border-box;
    object-fit: contain;
    opacity: 1;
}

.inventory-plus,
.inventory-count,
.anvil-plus,
.anvil-count {
    z-index: 1;
    text-shadow: 1px 1px 1px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000;
}

.inventory-plus,
.anvil-plus {
    top: 1px;
    bottom: auto;
}

/* ========================================================
   ITEM BİLGİ KARTI (orijinal ItemCard düzeni, koyu tema)
   ======================================================== */
.item-tip {
    position: fixed;
    z-index: 9000;
    width: 250px;
    border: 1px solid #0e0e0e;
    border-radius: 5px;
    background: #16120e;
    box-shadow: 0 0 0 1px #4a3925, 0 10px 26px rgba(0, 0, 0, 0.8);
    color: #e0d5c1;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    pointer-events: none;
    overflow: visible;
}

.item-tip[hidden] {
    display: none;
}

.item-tip-head {
    display: flex;
    gap: 8px;
    padding: 8px 8px 8px 10px;
}

.item-tip-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3px;
}

.item-tip-name {
    max-width: 100%;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-tip-tier {
    font-size: 11.5px;
    font-weight: 800;
    text-shadow: 0 1px 1px #000;
}

.item-tip-type {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f0ece2;
    font-size: 11.5px;
    font-weight: 700;
}

.item-tip-type img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.item-tip-req {
    align-self: flex-start;
    padding: 1px 8px 1px 6px;
    background: linear-gradient(90deg, #8e2222 0%, rgba(90, 20, 20, 0) 100%);
    color: #f6e7d8;
    font-size: 10.5px;
}

.item-tip-req b {
    margin-left: 3px;
    color: #fff;
    font-size: 12px;
}

.item-tip-req b.is-short {
    color: #ff5a4a;
}

.item-tip-pic,
.item-tip-pic-wrapper {
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
}

.item-tip-pic img,
.item-tip-pic-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}

.item-tip-pic em,
.item-tip-pic-wrapper em {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.item-tip-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px 9px 10px;
}

.item-tip-desc {
    padding: 6px 8px;
    border-radius: 3px;
    background: #221b14;
    color: #d9cdb6;
    font-size: 11px;
    line-height: 1.35;
}

.item-tip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #c9bda6;
}

.item-tip-row i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border: 2px solid #d8a032;
    border-radius: 50%;
    box-sizing: border-box;
}

.item-tip-row b {
    margin-left: auto;
    color: #fff;
    font-size: 12.5px;
}

.item-tip-line {
    height: 1px;
    background: #3a3128;
}

.item-tip-cls {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e0d5c1;
    font-size: 11.5px;
    font-weight: 800;
}

.item-tip-cls.is-other {
    color: #ff6b5a;
}

.item-tip-cls img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.item-tip-trade {
    color: #ff5a4a;
    font-size: 12px;
    font-weight: 800;
}

.item-tip-hint {
    color: #6fe07a;
    font-size: 11px;
    font-weight: 800;
}

.item-tip-equipped {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border: 1px solid #1b4d22;
    border-radius: 3px;
    background: #3ea84e;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 14px;
    text-align: center;
}


/* ========================================================
   SKILL BAR BEKLEME SÜRESİ (cooldown)
   ======================================================== */
.ko-sb-slot {
    position: relative;
}

.ko-sb-cd {
    position: absolute;
    inset: 1px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: conic-gradient(rgba(0, 0, 0, 0.72) var(--cd, 360deg), rgba(0, 0, 0, 0) 0);
    pointer-events: none;
}

.ko-sb-cd::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 200, 90, 0.35);
}

.ko-sb-cd b {
    position: relative;
    color: #ffe39a;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

/* ========================================================
   OYUNCU SEÇİMİ: AYAK ALTINDA HALKA + ÜST ORTADA HEDEF PENCERESİ
   ======================================================== */
.player-sprite {
    pointer-events: auto;
    cursor: pointer;
}

.player-sprite.is-remote {
    z-index: 7;
}

.target-ring {
    position: absolute;
    z-index: 5;
    width: 86px;
    height: 30px;
    pointer-events: none;
}

.target-ring[hidden] {
    display: none;
}

.target-ring i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.target-ring i:first-child {
    border: 2px solid rgba(255, 214, 110, 0.95);
    box-shadow: 0 0 8px rgba(255, 190, 70, 0.8), inset 0 0 8px rgba(255, 190, 70, 0.5);
    animation: targetPulse 1.4s ease-in-out infinite;
}

.target-ring i:last-child {
    inset: -5px -9px;
    border: 1px dashed rgba(255, 236, 170, 0.7);
    animation: targetSpin 6s linear infinite;
}

.target-ring.is-pop i:first-child {
    animation: targetPop 0.35s ease-out, targetPulse 1.4s ease-in-out 0.35s infinite;
}

@keyframes targetPulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; box-shadow: 0 0 14px rgba(255, 200, 80, 1), inset 0 0 10px rgba(255, 200, 80, 0.7); }
}

@keyframes targetSpin {
    to { transform: rotate(360deg); }
}

@keyframes targetPop {
    from { transform: scale(1.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.target-frame {
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 40;
    width: 240px;
    transform: translateX(-50%);
    padding: 6px 8px 8px;
    border: 1px solid #4a3925;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(34, 27, 20, 0.95) 0%, rgba(12, 10, 8, 0.95) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    pointer-events: none;
}

.target-frame[hidden] {
    display: none;
}

.target-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.target-head img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.target-head b {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 1px #000;
}

.target-head span {
    color: #7ddc7d;
    font-size: 11px;
}

.target-hp {
    position: relative;
    height: 16px;
    border: 1px solid #000;
    border-radius: 2px;
    background: #1a0605;
    overflow: hidden;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
}

.target-hp i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
}

.target-hp i:first-child {
    background: rgba(255, 220, 140, 0.55);
    transition: width 0.9s ease 0.25s;
}

.target-hp i:last-child {
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px),
        linear-gradient(180deg, #ff5a4a 0%, #b81d12 55%, #6e0b05 100%);
    background-size: 32px 100%, 100% 100%;
    transition: width 0.3s ease;
    animation: koLoadingStripes 1.2s linear infinite;
}

.target-hp span {
    position: relative;
    display: block;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    text-shadow: 1px 1px 1px #000, -1px -1px 1px #000;
}

/* Bildirim: sayı rozeti ve kırmızı nokta */
.ko-menu-badge.is-dot {
    top: -1px;
    right: -1px;
    min-width: 0;
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #000, 0 0 5px rgba(255, 60, 40, 0.8);
}

/* Fısıltı mesajları */
.ko-chat-msg.is-whisper,
.ko-chat-msg.is-whisper .msg-author {
    color: #e38cff;
}

/* ========================================================
   ENVANTER SÜRÜKLE-BIRAK
   ======================================================== */
.inventory-drag-ghost {
    position: fixed;
    z-index: 9500;
    width: 40px;
    height: 40px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
    opacity: 0.9;
    pointer-events: none;
}

.inventory-slot.is-drag-source img {
    opacity: 0.3;
}

.inventory-panel.is-item-syncing .inventory-slot.has-item {
    pointer-events: none;
}

.inventory-slot.is-drop-ok {
    border-color: #3fd46b;
    box-shadow: inset 0 0 0 1px rgba(63, 212, 107, 0.55), 0 0 5px rgba(63, 212, 107, 0.45);
}

.inventory-slot.is-drop-bad {
    border-color: #c0392b;
    box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.45);
}

.inventory-slot.is-drop-hover {
    background: #1d1a14;
    border-color: #ffd978;
}

.inventory-slot.is-drop-ok.is-drop-hover {
    border-color: #7dff9a;
}

/* Skill öğrenme alanı */
.skill-book-learn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding: 5px 7px;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    color: #c9bda6;
    font-size: 10.5px;
}

.skill-learn-btn {
    height: 22px;
    padding: 0 14px;
    border: 1px solid #3c7a3a;
    border-radius: 2px;
    background: linear-gradient(180deg, #2d5e22 0%, #122a0d 100%);
    color: #d8ffc0;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
}

.skill-learn-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.skill-learn-btn[hidden] {
    display: none;
}

/* ========================================================
   PENCERE BAŞLIKLARI: açık gri-beyaz başlık, köşeye tam oturan X
   ======================================================== */
.settings-titlebar {
    padding-right: 0;
}

.settings-titlebar strong,
.karakter-title-plate strong {
    color: #d8cfbe;
}

.settings-titlebar strong::before,
.karakter-title-dot {
    background: #d8cfbe;
    box-shadow: 0 0 4px rgba(216, 207, 190, 0.55);
}

.settings-titlebar > button {
    width: 24px;
    height: 100%;
    min-height: 21px;
    align-self: stretch;
    border: 0;
    border-left: 1px solid #2b251e;
    border-radius: 0;
    background: #3a1a16;
    font-size: 13px;
}

.settings-titlebar > button::before {
    font-size: 14px;
}

.settings-titlebar > button:hover {
    background: #6b231b;
    color: #fff;
}

.settings-titlebar > button:focus,
.settings-titlebar > button:focus-visible,
.karakter-close-btn:focus,
.karakter-close-btn:focus-visible,
.warp-close-btn:focus,
.warp-close-btn:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.45);
}

.warp-close-btn {
    top: 0;
    right: 0;
    width: 34px;
    height: 100%;
    border-left: 1px solid #140d04;
    background-color: rgba(60, 20, 14, 0.55);
    background-size: 14px 14px;
}

.warp-title-plate strong {
    color: #e8e0d0;
}

/* Gate penceresi boydan büyük */
.warp-dest-list {
    height: 230px;
}

/* ========================================================
   ALT MENÜ BUTONLARI: okunur yazılar
   ======================================================== */
.ko-menu-item {
    height: 44px;
    gap: 2px;
    color: #eadfc9;
}

.ko-menu-icon-wrap,
.ko-menu-icon-wrap img {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
}

.ko-menu-label {
    font-size: 8.8px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    color: #efe6d4;
}

/* ========================================================
   AYARLAR: Karakter Değiştir / Çıkış Yap
   ======================================================== */
.settings-side-tabs button.is-link {
    margin-top: 4px;
    color: #d3c8bc;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 400;
    border: 1px solid #4c4740;
    border-radius: 0;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: none;
}

.settings-side-tabs button.is-link:hover {
    color: #f0ddd0;
    border-color: #744638;
    background: rgba(22, 16, 15, 0.92);
}

.settings-side-tabs button.is-link + button.is-link {
    margin-top: 0;
}

.settings-side-tabs button.is-exit {
    border: 1px solid #70645b;
    border-radius: 0;
    background: rgba(10, 10, 11, 0.84);
    box-shadow: inset 0 0 0 2px #1d1a19;
    color: #d3c8bc;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 400;
}

.settings-side-tabs button.is-exit:hover {
    border-color: #b49a87;
    background: rgba(30, 24, 22, 0.96);
    box-shadow: inset 0 0 0 2px #292320, 0 0 10px rgba(0, 0, 0, 0.35);
    color: #f0e1d4;
}



/* ========================================================
   ONAY PENCERESİ
   ======================================================== */
.ko-confirm {
    padding: 0;
    border: 0;
    background: transparent;
}

.ko-confirm::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.ko-confirm-box {
    width: 360px;
    border: 1px solid #a56554;
    border-radius: 0;
    background: #090909;
    color: #e7dacf;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.8), inset 0 0 0 3px #211412;
    overflow: hidden;
}

.ko-confirm-box header.settings-titlebar {
    height: 30px;
    border-radius: 0;
    border-bottom: 1px solid rgba(157, 112, 91, 0.42);
    background: linear-gradient(100deg, #44211c, #1b1110);
    padding: 0 10px 0 12px;
}

.ko-confirm-box header.settings-titlebar strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 700;
    color: #f0dfd3;
}

.ko-confirm-box p {
    margin: 0;
    padding: 20px 18px;
    color: #d9cec4;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.ko-confirm-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 14px 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(45, 34, 22, 0.72), rgba(14, 12, 10, 0.9));
    border: 1px solid rgba(174, 132, 54, 0.42);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.ko-confirm-detail[hidden] {
    display: none;
}

.ko-confirm-item-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, rgba(90, 65, 34, 0.9), rgba(8, 7, 6, 0.95));
    border: 1px solid #7f6329;
}

.ko-confirm-item-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.ko-confirm-item-icon span {
    position: absolute;
    right: 3px;
    bottom: 2px;
    color: #fff2a8;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 1px 1px 2px #000;
}

.ko-confirm-item-info {
    min-width: 0;
    display: grid;
    gap: 3px;
    color: #d9c49a;
}

.ko-confirm-item-info b {
    color: #ffe289;
    font-size: 13px;
}

.ko-confirm-item-info em,
.ko-confirm-item-info small {
    color: #b9aa8b;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
}

.ko-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 16px;
}

.ko-confirm-actions button {
    height: 34px;
    min-height: 34px;
    border-radius: 0 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    box-sizing: border-box;
}

.ko-confirm-actions button[data-ko-confirm-yes],
.ko-confirm-actions button.is-green,
.ko-confirm-actions button[data-trash-confirm] {
    border: 1px solid #ad6253 !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 2px #291815 !important;
    background: linear-gradient(105deg, rgba(101, 46, 38, 0.96), rgba(51, 23, 20, 0.96)) !important;
    color: #f0e1d4 !important;
}

.ko-confirm-actions button[data-ko-confirm-yes]:hover,
.ko-confirm-actions button.is-green:hover,
.ko-confirm-actions button[data-trash-confirm]:hover {
    border-color: #d29a83 !important;
    background: linear-gradient(105deg, #793b30, #48201b) !important;
    color: #fff0e5 !important;
    box-shadow: inset 0 0 0 2px #38201b, 0 0 14px rgba(146, 65, 51, 0.35) !important;
}

.ko-confirm-actions button[data-ko-confirm-no],
.ko-confirm-actions button[data-trash-close],
.ko-confirm-actions button:not(.is-green):not([data-ko-confirm-yes]):not([data-trash-confirm]) {
    border: 1px solid #70645b !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 2px #1d1a19 !important;
    background: rgba(10, 10, 11, 0.84) !important;
    color: #d3c8bc !important;
}

.ko-confirm-actions button[data-ko-confirm-no]:hover,
.ko-confirm-actions button[data-trash-close]:hover,
.ko-confirm-actions button:not(.is-green):not([data-ko-confirm-yes]):not([data-trash-confirm]):hover {
    border-color: #b49a87 !important;
    background: rgba(30, 24, 22, 0.96) !important;
    box-shadow: inset 0 0 0 2px #292320, 0 0 10px rgba(0, 0, 0, 0.35) !important;
    color: #f0e1d4 !important;
}



.ko-trash-modal {
    position: fixed;
    inset: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

.ko-trash-modal::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.ko-trash-box {
    width: 258px;
    box-sizing: border-box;
    border: 1px solid #2b251e;
    border-radius: 3px;
    background: rgba(14, 12, 10, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
    color: #e0d5c1;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.ko-trash-box .settings-titlebar {
    cursor: move;
}

.ko-trash-box .ko-confirm-actions {
    padding: 0 10px 12px;
}

.ko-trash-info {
    padding: 10px 10px 6px;
    color: #d8cfbe;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 1px 1px 1px #000;
}

.ko-trash-grid {
    display: grid;
    grid-template-columns: repeat(6, var(--inventory-slot-size, 36px));
    grid-auto-rows: var(--inventory-slot-size, 36px);
    gap: 4px;
    padding: 6px 10px 10px;
}

.ko-trash-grid.is-trash-hover {
    background: rgba(74, 18, 14, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 82, 64, 0.35);
}

.ko-trash-grid .inventory-slot {
    width: var(--inventory-slot-size, 36px);
    height: var(--inventory-slot-size, 36px);
    padding: 0;
}

.ko-guard-modal {
    padding: 0;
    border: 0;
    background: transparent;
}

.ko-guard-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.ko-guard-box {
    width: min(340px, calc(100vw - 30px));
    border: 1px solid #6a4b1d;
    border-radius: 3px;
    background: rgba(11, 9, 7, 0.98);
    color: #e8dcc6;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 217, 120, 0.12);
    overflow: hidden;
}

.ko-guard-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 8px;
}

.ko-guard-emblem {
    width: 44px;
    height: 44px;
    border: 1px solid #7b5a22;
    background: radial-gradient(circle at 50% 35%, #463112 0%, #15100a 72%);
    color: #ffd978;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
}

.ko-guard-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
}

.ko-guard-copy b {
    color: #ffd978;
    font-size: 13px;
}

.ko-guard-question {
    height: 34px;
    margin: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #34291b;
    background: #080706;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px #000;
}

.ko-guard-modal input {
    width: calc(100% - 24px);
    height: 30px;
    margin: 8px 12px 0;
    box-sizing: border-box;
    border: 1px solid #4b3920;
    background: #050403;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

.ko-guard-status {
    min-height: 18px;
    margin: 6px 12px 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #cfc1aa;
    font-size: 11px;
}

.ko-guard-status b {
    color: #ffd978;
}

.ko-guard-modal .ko-confirm-actions {
    grid-template-columns: 1fr;
}

/* ========================================================
   SAĞ ÜST: OTOMATİK AV (GENIE)
   ======================================================== */
.ko-genie {
    width: 150px;
    margin-left: auto;
    padding: 4px 5px;
    border: 1px solid #3a332a;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(34, 30, 26, 0.94) 0%, rgba(14, 12, 10, 0.97) 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    font-size: 10px;
    color: #8fc4ff;
    box-sizing: border-box;
}

.ko-genie.is-active {
    border-color: #3c7a3a;
    box-shadow: 0 0 8px rgba(63, 212, 107, 0.35);
}

.ko-genie-head {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ko-genie-title {
    flex: 1;
    color: #ffd978;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
}

.ko-genie-btn {
    width: 18px;
    height: 16px;
    padding: 0;
    border: 1px solid #5c4e3a;
    border-radius: 2px;
    background: linear-gradient(180deg, #d8a032 0%, #7a4f12 100%);
    color: #1a1208;
    font-size: 9px;
    line-height: 14px;
    cursor: pointer;
}

.ko-genie-btn.is-stop {
    background: linear-gradient(180deg, #b8b0a0 0%, #5e5a52 100%);
}

.ko-genie.is-active .ko-genie-btn.is-start {
    background: linear-gradient(180deg, #7dff9a 0%, #2e7d32 100%);
}

.ko-genie-btn.is-menu {
    background: #1a1612;
}

.ko-genie-btn img {
    width: 11px;
    height: 11px;
    vertical-align: middle;
}

.ko-genie-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    padding: 4px;
    border: 1px solid #2b251e;
    background: #0c0a08;
    color: #d8cfbe;
    font-size: 9.5px;
}

.ko-genie-menu[hidden] {
    display: none;
}

.ko-genie-row {
    margin-top: 3px;
    text-shadow: 1px 1px 1px #000;
}

.ko-genie-row b {
    color: #d8f0ff;
}

.ko-genie-row.is-target {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ko-genie-row.is-target span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ko-genie-mini {
    width: 16px;
    height: 14px;
    padding: 0;
    border: 1px solid #4a3925;
    border-radius: 2px;
    background: #1a1612;
    color: #ffd978;
    font-size: 11px;
    line-height: 12px;
    cursor: pointer;
}

/* ========================================================
   15. SEVİYEYE KADAR OYUN LOGOSU (isim etiketi)
   ======================================================== */
.player-rookie {
    width: 13px;
    height: 13px;
    margin-right: 3px;
    border: 1px solid #8c6f3d;
    border-radius: 2px;
    vertical-align: -2px;
    object-fit: cover;
}

/* ========================================================
   HEDEF HALKASI ve HEDEF PENCERESİ
   ======================================================== */
.target-ring {
    width: 90px;
    height: auto;
    aspect-ratio: 5 / 2;
    transform: translate(-50%, -50%);
}

.target-ring svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.target-ring i {
    display: none;
}

.target-ring .ring-glow {
    fill: none;
    stroke: rgba(255, 200, 80, 0.35);
    stroke-width: 6;
    filter: blur(2px);
}

.target-ring .ring-main {
    fill: rgba(255, 200, 80, 0.08);
    stroke: #ffd36b;
    stroke-width: 2;
    animation: targetPulse2 1.4s ease-in-out infinite;
}

.target-ring .ring-dash {
    fill: none;
    stroke: rgba(255, 236, 170, 0.8);
    stroke-width: 1;
    stroke-dasharray: 6 5;
    transform-origin: 50% 50%;
    animation: targetDash 2.4s linear infinite;
}

.target-ring.is-mob .ring-main {
    stroke: #ff6b4a;
    fill: rgba(255, 90, 60, 0.1);
}

.target-ring.is-mob .ring-glow {
    stroke: rgba(255, 90, 60, 0.35);
}

.target-ring.is-pop svg {
    animation: targetPop 0.35s ease-out;
}

@keyframes targetPulse2 {
    0%, 100% { stroke-opacity: 0.7; }
    50% { stroke-opacity: 1; }
}

@keyframes targetDash {
    to { stroke-dashoffset: -22; }
}

.target-frame {
    width: 230px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    text-align: left;
}

.target-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.target-head > b {
    display: block;
    color: #fff;
    font-size: 12px;
    text-shadow: 1px 1px 1px #000, 0 0 4px #000;
}

.target-head button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.target-head button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
}

.target-hp {
    height: 15px;
    border: 1px solid #000;
    background: rgba(40, 6, 4, 0.85);
}

.target-hp i:first-child {
    background: rgba(255, 150, 120, 0.45);
}

.target-hp i:last-child {
    background: linear-gradient(180deg, #ff4a3a 0%, #c81a10 55%, #7a0805 100%);
    animation: none;
}

.target-drops {
    display: flex;
    gap: 4px;
    margin-top: 3px;
    height: 24px;
    align-items: center;
}

.target-drops[hidden] {
    display: none;
}

.target-drops span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.target-drops img {
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px #000);
}

/* ========================================================
   MOBLAR
   ======================================================== */
.mob-sprite {
    position: absolute;
    z-index: 6;
    cursor: pointer;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
    image-rendering: auto;
    transition: opacity 0.3s;
}

.mob-sprite.is-hit {
    animation: mobHit 0.25s ease-out;
}

@keyframes mobHit {
    0% { filter: brightness(2.2) drop-shadow(0 0 6px #ff5a4a); }
    100% { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); }
}

.mob-shadow {
    position: absolute;
    z-index: 4;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    filter: blur(2px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mob-name {
    position: absolute;
    z-index: 30;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 800;
    text-shadow: 0 1px 0 #000, 0 0 4px #000;
}

.mob-name[hidden] {
    display: none;
}

/* Mob adları oyuncular gibi tek renk (oyuncular beyaz, moblar açık amber); Lv. kırmızı ve ince */
.mob-name { color: #f3cf8e; }
.mob-name .mob-lv {
    color: #ff4a3d;
    font-size: inherit;
    font-weight: 400;
}
.mob-name .mob-code {
    color: #c77dff;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 #000, 0 0 5px rgba(157, 78, 221, 0.8);
}

.mob-hp {
    display: block;
    width: 50px;
    height: 4px;
    border: 1px solid #000;
    background: #2a0604;
}

.mob-hp[hidden] {
    display: none;
}

.mob-hp b {
    display: block;
    height: 100%;
    background: #e8321f;
}

/* Uçan hasar sayıları */
.dmg-float {
    position: absolute;
    z-index: 35;
    transform: translate(-50%, 0);
    pointer-events: none;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    animation: dmgFloat 1.1s ease-out forwards;
}

.dmg-float.is-deal { color: #fff3c4; }
.dmg-float.is-crit { color: #ffcf3a; font-size: 18px; }
.dmg-float.is-take { color: #ff5a4a; }

@keyframes dmgFloat {
    0% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -4px) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -42px) scale(1); }
}

/* Skill efektleri */
.skill-fx {
    position: absolute;
    z-index: 34;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.skill-fx i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: skillBurst 0.65s ease-out forwards;
}

.skill-fx i:nth-child(2) { animation-delay: 0.08s; inset: 12px; }
.skill-fx i:nth-child(3) { animation-delay: 0.16s; inset: 26px; }

.skill-fx.is-warrior i { box-shadow: 0 0 0 3px rgba(255, 170, 70, 0.9), inset 0 0 18px rgba(255, 140, 40, 0.8); }
.skill-fx.is-rogue i { box-shadow: 0 0 0 3px rgba(120, 255, 120, 0.85), inset 0 0 18px rgba(60, 200, 80, 0.8); }
.skill-fx.is-mage i { box-shadow: 0 0 0 3px rgba(140, 170, 255, 0.9), inset 0 0 18px rgba(90, 120, 255, 0.8); }
.skill-fx.is-fire i { box-shadow: 0 0 0 3px rgba(255, 120, 40, 0.95), inset 0 0 22px rgba(255, 70, 20, 0.9); }
.skill-fx.is-ice i { box-shadow: 0 0 0 3px rgba(150, 230, 255, 0.95), inset 0 0 22px rgba(80, 190, 255, 0.9); }
.skill-fx.is-light i { box-shadow: 0 0 0 3px rgba(255, 245, 140, 0.95), inset 0 0 22px rgba(255, 230, 80, 0.9); }

@keyframes skillBurst {
    0% { opacity: 1; transform: scale(0.2); }
    70% { opacity: 0.9; }
    100% { opacity: 0; transform: scale(1.25); }
}

.move-marker {
    position: absolute;
    z-index: 3;
    width: 72px;
    height: 36px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.move-marker i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 220, 90, 0.95);
    box-shadow: 0 0 8px rgba(255, 220, 90, 0.55), inset 0 0 12px rgba(255, 170, 50, 0.22);
    animation: targetPulse2 1.1s ease-in-out infinite;
}

.move-marker i:nth-child(2) {
    inset: 5px 11px;
    border-style: dashed;
    animation: targetDash 1.25s linear infinite;
}

.move-marker i:nth-child(3) {
    inset: 11px 24px;
    border-style: dotted;
    opacity: 0.85;
}

@keyframes moveMarkerSpin {
    to { transform: rotate(360deg); }
}

/* Görev sayacı: orta üst, hedef penceresinin altında */
.quest-tracker {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 38;
    transform: translateX(-50%);
    min-width: 210px;
    padding: 0;
    background: transparent;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    pointer-events: none;
}

.quest-tracker[hidden] {
    display: none;
}

.quest-tracker div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    margin-top: 3px;
    padding: 3px 8px;
    background: rgba(12, 9, 5, 0.68);
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.08);
    color: #f3e3c4;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 1px 1px 1px #000;
}

.quest-tracker img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.quest-tracker span {
    flex: 1;
}

.quest-tracker b {
    color: #ffd978;
    font-size: 11px;
    white-space: nowrap;
}

.quest-tracker .is-done b {
    color: #7dff8a;
}

/* Log renkleri (KO tarzı) */
.ko-log-msg.is-dmg-deal { color: #ffffff; }
.ko-log-msg.is-dmg-take { color: #ff6b5a; }
.ko-log-msg.is-using { color: #ffffff; }
.ko-log-msg.is-mp-use { color: #ff8f8f; }
.ko-log-msg.is-restore { color: #7ddc7d; }
.ko-log-msg.is-exp-gain { color: #ffd23a; }
.ko-log-msg.is-pickup { color: #ff9ce6; }

/* ========================================================
   GELEN İSTEKLER (ticaret / VS / klan)
   ======================================================== */
.ko-requests {
    position: fixed;
    top: 120px;
    left: 50%;
    z-index: 60;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ko-request {
    width: 300px;
    padding: 10px 12px;
    border: 1px solid #8c6f3d;
    border-radius: 3px;
    background: rgba(14, 12, 10, 0.96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.8);
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    animation: targetPop 0.3s ease-out;
}

.ko-request p {
    margin: 0 0 8px;
    color: #f3e3c4;
    font-size: 11.5px;
    text-align: center;
}

.ko-request div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ko-request button {
    height: 25px;
    border-radius: 2px;
    border: 1px solid #6a2a22;
    background: linear-gradient(180deg, #8f211a 0%, #57110e 100%);
    color: #fff3d0;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 1px 1px 1px #000;
}

.ko-request button:first-child {
    border-color: #2f6e2d;
    background: linear-gradient(180deg, #1f7d28 0%, #124d18 100%);
}

/* ========================================================
   TİCARET PENCERESİ
   ======================================================== */
.trade-panel {
    width: min(360px, calc(100vw - 20px));
    position: relative;
    z-index: 5;
    border-radius: 0;
    border: 1px solid #4e3d37;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0, 0, 0, 0.85);
    color: #e0dcd7;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    user-select: none;
}

.trade-body {
    padding: 8px;
    background: rgba(10, 8, 8, 0.96);
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    color: #e0dcd7;
}

.trade-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 16px 20px;
    color: #d8cfbe;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.trade-idle[hidden],
.trade-live[hidden] {
    display: none;
}

.trade-idle img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid #5a3d36;
    background: radial-gradient(circle, rgba(74, 35, 30, 0.45) 0%, rgba(16, 12, 11, 0.9) 70%);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9), 0 0 0 1px #261918, 0 4px 10px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    box-sizing: border-box;
}

.trade-idle p {
    margin: 0;
    color: #f0ddd0;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 290px;
}

.trade-rule {
    color: #8c8273;
    font-size: 10px;
    line-height: 1.4;
    padding: 6px 10px;
    border: 1px solid #2e2420;
    background: rgba(14, 11, 10, 0.6);
    border-radius: 0;
    max-width: 290px;
}

.trade-live {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.trade-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.trade-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
}

.inventory-tools {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 5px;
    border: 0;
    border-left: 1px solid #4a3b29;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.inventory-tool-btn {
    width: 17px;
    height: 17px;
    padding: 1px;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.86;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-tool-btn:hover,
.inventory-tool-btn.is-trash-hover {
    opacity: 1;
    filter: brightness(1.22);
}

.inventory-tool-btn.is-trash-hover {
    box-shadow: inset 0 0 0 1px rgba(255, 82, 64, 0.8), 0 0 6px rgba(255, 82, 64, 0.45);
}

.inventory-tool-btn img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    pointer-events: none;
}

.trade-side-title {
    color: #d8cfbe;
    font-size: 11px;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(3, 38px);
    gap: 3px;
}

.trade-cell {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: #080706;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.9);
    box-sizing: border-box;
    overflow: hidden;
}

.trade-cell.has-item {
    border-color: #8c6f3d;
    background: #120f0c;
}

.trade-cell.is-click {
    cursor: pointer;
}

.trade-cell.is-click:hover {
    border-color: #ffd978;
}

.trade-cell.is-offered img {
    opacity: 0.3;
}

.trade-cell.is-blocked img {
    filter: grayscale(1);
    opacity: 0.4;
}

.trade-cell img {
    width: 100%;
    height: 100%;
    padding: 2px;
    box-sizing: border-box;
    object-fit: contain;
}

.trade-cell em,
.trade-cell span {
    position: absolute;
    font-size: 9.5px;
    font-weight: 900;
    font-style: normal;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.trade-cell em {
    top: 1px;
    left: 2px;
    color: #ffd978;
}

.trade-cell span {
    right: 2px;
    bottom: 1px;
    color: #fff;
}

.trade-noah {
    display: flex;
    align-items: center;
    width: 120px;
    height: 22px;
    padding: 0 4px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(8, 7, 6, 0.95);
    box-shadow: inset 0 0 0 1px #1d1413;
    gap: 4px;
    box-sizing: border-box;
    cursor: text;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.trade-noah:focus-within {
    border-color: #8a483e;
    box-shadow: inset 0 0 0 1px #8a483e, 0 0 6px rgba(138, 72, 62, 0.35);
}

.trade-noah img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
}

.trade-noah input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffd978;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    outline: none;
    box-sizing: border-box;
}

.trade-noah input:focus {
    border: 0;
    outline: none;
}

.trade-state {
    font-size: 10px;
    font-weight: 800;
    color: #9c9282;
}

.trade-state.is-locked { color: #7fc8ff; }
.trade-state.is-done { color: #7dff8a; }

.trade-status {
    min-height: 16px;
    color: #ffe7a8;
    font-size: 11px;
    text-align: center;
}

.trade-bag-title {
    color: #d8cfbe;
    font-size: 10.5px;
    font-weight: 700;
}

.trade-bag-title span {
    color: #8c8273;
    font-weight: 400;
}

.trade-bag {
    display: grid;
    grid-template-columns: repeat(5, 38px);
    gap: 3px;
    justify-content: center;
}

.trade-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.trade-actions .ko-action-btn {
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border-radius: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    user-select: none;
}

.trade-actions [data-trade-lock] {
    border: 1px solid #7a3a30;
    background: linear-gradient(180deg, #4a231e 0%, #2b1411 100%);
    box-shadow: inset 0 0 0 1px #291815;
    color: #f0ddd0;
}

.trade-actions [data-trade-lock]:hover:not(:disabled) {
    background: linear-gradient(180deg, #6e2e25 0%, #3e1915 100%);
    border-color: #aa4d40;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 8px rgba(170, 77, 64, 0.35);
}

.trade-actions [data-trade-confirm] {
    border: 1px solid #ad6253;
    background: linear-gradient(105deg, rgba(101, 46, 38, 0.96), rgba(51, 23, 20, 0.96));
    box-shadow: inset 0 0 0 1px #291815;
    color: #f0e1d4;
}

.trade-actions [data-trade-confirm]:hover:not(:disabled) {
    border-color: #d29a83;
    background: linear-gradient(105deg, #793b30, #48201b);
    color: #fff0e5;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 10px rgba(146, 65, 51, 0.35);
}

.trade-actions [data-trade-cancel] {
    border: 1px solid #4c4740;
    background: rgba(16, 12, 11, 0.9);
    box-shadow: inset 0 0 0 1px #1d1a19;
    color: #c9c1bb;
}

.trade-actions [data-trade-cancel]:hover:not(:disabled) {
    border-color: #744638;
    color: #fff;
    background: rgba(30, 20, 18, 0.95);
}

.trade-actions .ko-action-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #382d28 !important;
    background: #141110 !important;
    color: #685f57 !important;
    box-shadow: none !important;
}

/* ========================================================
   MAĞAZA
   ======================================================== */
.store-panel {
    width: min(640px, calc(100vw - 20px));
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.store-body {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 8px;
    padding: 8px;
    background: rgba(14, 12, 10, 0.95);
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    align-content: start;
    min-height: 300px;
}

.store-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border: 1px solid #3a322a;
    border-radius: 3px;
    background: linear-gradient(180deg, #1b1611 0%, #0e0c0a 100%);
    cursor: pointer;
}

.store-card.is-selected {
    border-color: #ffd978;
    box-shadow: 0 0 6px rgba(255, 217, 120, 0.35);
}

.store-tag {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 1px 5px;
    border-radius: 0 3px 0 3px;
    background: #c8741e;
    color: #fff;
    font-size: 8.5px;
    font-style: normal;
    font-weight: 900;
}

.store-card-top {
    display: flex;
    gap: 7px;
}

.store-card-icon {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid #8c6f3d;
    border-radius: 3px;
    background: #120f0c;
}

.store-card-icon img {
    width: 100%;
    height: 100%;
    padding: 3px;
    box-sizing: border-box;
    object-fit: contain;
}

.store-card-icon span {
    position: absolute;
    right: 2px;
    bottom: 1px;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.store-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 10.5px;
    color: #c9bda6;
}

.store-card-info b {
    color: #f3e3c4;
    font-size: 11.5px;
}

.store-card-info img {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    vertical-align: -2px;
}

.store-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.store-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid #3a322a;
    border-radius: 3px;
    background: #0e0c0a;
}

.store-detail-head {
    padding-bottom: 4px;
    border-bottom: 1px solid #3a6e8a;
    color: #7fc8ff;
    font-size: 11px;
    font-weight: 800;
}

.store-detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.store-detail-icon {
    width: 64px;
    height: 64px;
    border: 1px solid #8c6f3d;
    border-radius: 4px;
    background: radial-gradient(circle at 50% 60%, #2e2419 0%, #0c0a08 75%);
}

.store-detail-icon img {
    width: 100%;
    height: 100%;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
}

.store-detail-card b {
    color: #f3e3c4;
    font-size: 12px;
}

.store-detail-type {
    color: #9c9282;
    font-size: 10px;
}

.store-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.store-detail-rows div {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
}

.store-detail-rows dt {
    color: #9c9282;
}

.store-detail-rows dd {
    margin: 0;
    color: #ffd978;
    font-weight: 800;
}

.store-detail-rows dd img {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    vertical-align: -2px;
}

.store-detail-rows dd.is-short {
    color: #ff6b5a;
}

.store-detail-desc {
    flex: 1;
    margin: 0;
    color: #c9bda6;
    font-size: 10.5px;
    line-height: 1.45;
}

.store-footer {
    display: flex;
    justify-content: flex-end;
    padding: 5px 10px;
    border-top: 1px solid #2b251e;
    background: #110e0b;
    color: #d8cfbe;
    font-size: 11px;
}

.store-footer img {
    width: 14px;
    height: 14px;
    vertical-align: -3px;
}

.store-footer b {
    color: #d0a2ff;
}

/* ========================================================
   PAZAR
   ======================================================== */
.market-panel {
    width: min(560px, calc(100vw - 20px));
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.market-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
    background: rgba(14, 12, 10, 0.95);
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.market-notice {
    color: #ffd978;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.market-search {
    display: flex;
    gap: 5px;
}

.market-search input,
.market-sell-row input {
    flex: 1;
    min-width: 0;
    height: 24px;
    padding: 0 7px;
    border: 1px solid #3a322a;
    border-radius: 2px;
    background: #080706;
    color: #f0e6d2;
    font-family: inherit;
    font-size: 11px;
}

.market-table {
    border: 1px solid #3a322a;
    border-radius: 2px;
    background: #0b0908;
}

.market-row {
    display: grid;
    grid-template-columns: 52px 1fr 110px 78px;
    align-items: center;
    min-height: 30px;
    border-bottom: 1px solid #1f1a15;
    font-size: 11px;
    color: #d9d0bf;
}

.market-row.is-head {
    min-height: 24px;
    background: #17130f;
    color: #ff8a8a;
    font-weight: 800;
    text-align: center;
}

.market-row.is-head button {
    padding: 0;
    border: 0;
    background: none;
    color: #ff8a8a;
    font: inherit;
    cursor: pointer;
}

.market-row.is-head button:hover {
    color: #ffd978;
}

.mk-chat {
    text-align: center;
}

.mk-icon {
    width: 26px;
    height: 22px;
    padding: 2px;
    border: 1px solid #3c7a3a;
    border-radius: 2px;
    background: linear-gradient(180deg, #2d5e22 0%, #122a0d 100%);
    cursor: pointer;
}

.mk-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mk-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mk-name img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.mk-name b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f3e3c4;
}

.mk-name em {
    margin-left: auto;
    padding-right: 6px;
    color: #8c8273;
    font-size: 9.5px;
    font-style: normal;
}

.mk-price {
    padding-right: 8px;
    color: #ffd978;
    font-weight: 800;
    text-align: right;
}

.mk-act {
    padding: 0 4px;
}

.mk-act .mail-btn {
    width: 100%;
    height: 22px;
    padding: 0;
}

.market-pager {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e8ddc6;
    font-size: 11px;
    font-weight: 700;
}

.market-noah {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffd978;
}

.market-noah img {
    width: 14px;
    height: 14px;
}

.market-sell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px;
    border: 1px solid #3a322a;
    border-radius: 3px;
    background: #0e0c0a;
}

.market-sell[hidden] {
    display: none;
}

.market-sell-title {
    color: #d8cfbe;
    font-size: 11px;
    font-weight: 800;
}

.market-sell-title span {
    color: #8c8273;
    font-weight: 400;
}

.market-sell-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffe7a8;
    font-size: 11px;
}

.market-sell-row > span {
    flex: 1;
    min-width: 0;
}

/* ========================================================
   ARKADAŞ PANELİ İKONLARI: beyaz, engelle / çıkar kırmızı
   ======================================================== */
.friend-menu .friend-icon-btn img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.friend-menu .friend-icon-btn {
    color: #fff;
}

.friend-menu .friend-icon-btn.is-danger {
    color: #ff5a4a;
}

/* ========================================================
   DİĞER
   ======================================================== */
.rank-panel {
    width: 440px;
}

.quest-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.quest-actions .quest-btn {
    min-width: 0;
}

.skill-item.is-empty-slot {
    min-height: 40px;
    border: 1px dashed #2b251e;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.karakter-bonus-empty {
    padding: 14px 6px;
    color: #8c8273;
    font-size: 11px;
    text-align: center;
}

.ko-server-card {
    width: 150px;
}

/* Oyun alanı kendi katman bağlamı: mob / oyuncu katmanları pencerelerin üstüne çıkmaz */
.game-field {
    isolation: isolate;
}

/* Hedef HP barı: son eleman yazı (span) olduğundan i:last-child değil sıra ile seçilir */
.target-hp i:nth-of-type(1) {
    background: rgba(255, 150, 120, 0.45);
    transition: width 0.9s ease 0.25s;
}

.target-hp i:nth-of-type(2) {
    background: linear-gradient(180deg, #ff4a3a 0%, #c81a10 55%, #7a0805 100%);
    transition: width 0.3s ease;
    animation: none;
}


/* ========================================================
   DÜNYA KATMANI: harita pencereden büyük, kamera karakteri izler; UI sabit kalır
   ======================================================== */
.game-map-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 1900px;
    height: 1150px;
    will-change: transform;
    background-color: #1c2417;
    background-image:
        radial-gradient(ellipse at 18% 22%, rgba(92, 118, 66, 0.34) 0 10%, transparent 24%),
        radial-gradient(ellipse at 72% 64%, rgba(103, 92, 58, 0.30) 0 9%, transparent 23%),
        radial-gradient(circle at 36% 72%, rgba(38, 44, 28, 0.60) 0 2px, transparent 5px),
        radial-gradient(circle at 62% 30%, rgba(94, 87, 70, 0.55) 0 3px, transparent 7px),
        radial-gradient(circle at 82% 48%, rgba(58, 65, 46, 0.45) 0 2px, transparent 6px),
        linear-gradient(135deg, #202918 0%, #273019 34%, #2a271c 62%, #181d13 100%);
    background-size: 100% 100%, 100% 100%, 180px 150px, 260px 210px, 220px 190px, 100% 100%;
    background-position: 0 0, 0 0, 16px 28px, 44px 62px, 80px 30px, 0 0;
    box-shadow: inset 0 0 90px 30px rgba(0, 0, 0, 0.75);
}

.game-map-layer[data-zone="town"] {
    background-color: #1a1814;
    background-image:
        radial-gradient(circle at 50% 55%, rgba(170, 140, 90, 0.10) 0, transparent 45%),
        radial-gradient(circle at 20% 30%, rgba(90, 78, 58, 0.35) 0 2px, transparent 6px),
        radial-gradient(circle at 74% 68%, rgba(70, 58, 44, 0.35) 0 3px, transparent 8px),
        linear-gradient(135deg, #211d18 0%, #171410 100%);
    background-size: 100% 100%, 180px 160px, 240px 210px, 100% 100%;
    background-position: 0 0;
}

/* Derinlik game.js'te (100 + y) verilir; isimler, yazılar ve efektler her zaman varlıkların üstünde */
.game-map-layer .player-shadow,
.game-map-layer .mob-shadow {
    z-index: 2;
}

.game-map-layer .player-name,
.game-map-layer .mob-name {
    z-index: 9000;
}

.game-map-layer .skill-fx {
    z-index: 9100;
}

.game-map-layer .dmg-float {
    z-index: 9200;
}

/* Hedef halkası iki yarı: arka yarı varlığın arkasında, ön yarı ayaklarının önünde (tam kavrar) */
.target-ring.is-back svg {
    clip-path: inset(0 0 50% 0);
}

.target-ring.is-front svg {
    clip-path: inset(50% 0 0 0);
}

.target-ring.is-front .ring-main {
    fill: none;
}

.friend-menu .friend-icon-btn img.is-raw {
    filter: none;
}


/* Pazar: Fısıltı · Item Adı · Fiyat (satıra tıkla: satın al / ilanını geri al) */
.market-row {
    grid-template-columns: 52px 1fr 130px;
}

.market-row.is-click {
    cursor: pointer;
}

.market-row.is-click:hover {
    background: rgba(255, 217, 120, 0.06);
}

.mk-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.mk-price img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.market-row.is-head .mk-price {
    justify-content: flex-end;
}

.market-row.is-head .mk-name {
    padding-left: 6px;
}

.mk-icon img {
    filter: none;
}

/* Ayarlar sol menüsü: boşluksuz, taşarsa kendi içinde kayar */
.settings-content {
    grid-template-rows: minmax(0, 1fr);
}

.settings-side-tabs {

    min-height: 0;

    overflow-y: auto;

    scrollbar-width: none;

    -ms-overflow-style: none;

}



.settings-side-tabs::-webkit-scrollbar {

    display: none !important;

    width: 0 !important;

    height: 0 !important;

}



.settings-side-tabs button {
    flex-shrink: 0;
}

.settings-side-tabs button.is-link {
    margin-top: 0;
}


/* ========================================================
   OTOMATİK AV (KO Genie görünümü) + bilgi şeritleri
   ======================================================== */
.ko-server-cards {
    gap: 2px;
}

.ko-genie,
.ko-genie.is-active {
    width: 150px;
    padding: 0;
    border: 1px solid #7d6a45;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.78);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.ko-genie-head {
    gap: 2px;
    height: 21px;
    padding: 0 2px 0 5px;
    border-bottom: 1px solid #7d6a45;
    background: linear-gradient(180deg, #5a5a5a 0%, #2a2a2a 45%, #0e0e0e 100%);
}

.ko-genie-title {
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;
    text-shadow: 1px 1px 0 #000, 0 0 3px #000;
}

.ko-genie-btn,
.ko-genie-btn.is-stop,
.ko-genie-btn.is-menu {
    width: 17px;
    height: 17px;
    padding: 0;
    border: 0;
    border-radius: 1px;
    background: transparent;
    box-shadow: none;
    line-height: 17px;
}

.ko-genie-btn.is-stop {
    background: transparent;
}

.ko-genie-btn.is-menu {
    background: transparent;
}

.ko-genie-btn:hover {
    filter: brightness(1.15);
}

.ko-genie.is-active .ko-genie-btn.is-start {
    background: rgba(31, 135, 44, 0.92);
}

.ko-genie-btn.is-stop:hover,
.ko-genie.is-active .ko-genie-btn.is-stop {
    background: rgba(148, 27, 21, 0.92);
}

.ko-genie-btn img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    vertical-align: middle;
    pointer-events: none;
}

.ko-genie-row {
    margin: 0;
    padding: 3px 6px;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #000;
}

.ko-genie-row.is-time {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(125, 106, 69, 0.45);
}

.ko-genie-row.is-time span {
    position: relative;
    z-index: 1;
}

.ko-genie-row.is-time i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(185, 140, 42, 0.42), rgba(80, 130, 190, 0.22));
    pointer-events: none;
}

.ko-genie-row b {
    color: #ffffff;
}

.ko-genie.is-active .ko-genie-row.is-time b {
    color: #9dff8a;
}

.ko-genie-row.is-target {
    display: grid;
    grid-template-columns: 17px 1fr 17px;
    align-items: center;
    gap: 3px;
    padding: 2px 3px 3px 3px;
    text-align: center;
}

.ko-genie-row.is-target b {
    color: #ffd978;
}

.ko-genie-mini {
    width: 15px;
    height: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 15px;
}

.ko-genie-mini img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    pointer-events: none;
}

.ko-genie-menu {
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(125, 106, 69, 0.45);
    background: rgba(0, 0, 0, 0.6);
}

.ko-genie-check,
.ko-genie-range {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    color: #e7ddc9;
}

.ko-genie-check img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ko-genie-check input {
    justify-self: end;
    margin: 0;
}

.ko-genie-range {
    grid-template-columns: 1fr 58px 28px;
    padding-top: 2px;
    border-top: 1px solid rgba(125, 106, 69, 0.35);
}

.ko-genie-range input {
    width: 58px;
}

.ko-genie-range b {
    color: #ffd978;
    text-align: right;
}

/* Bilgi şeritleri: KO'daki mavi "EXP PREMIUM" satırları */
.ko-server-card,
.ko-server-card.is-premium,
.ko-server-card.is-info {
    width: 150px;
    height: 20px;
    padding: 0 0 0 14px;
    border: 1px solid #0d2233;
    border-radius: 0;
    background: linear-gradient(180deg, #5f8fb0 0%, #2f5f82 40%, #1b3f5c 60%, #122c43 100%);
    box-shadow: inset 0 1px 0 rgba(200, 230, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ko-server-card .ko-card-dot {
    display: none;
}

.ko-server-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    border-right: 1px solid #0d2233;
    background: linear-gradient(180deg, #2a2a2a 0%, #0c0c0c 100%);
}

.ko-server-card::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    border: 4px solid transparent;
    border-right-color: #d9c48a;
    border-left: 0;
    transform: translateY(-50%);
}

.ko-server-card .ko-card-text,
.ko-server-card.is-info .ko-card-text {
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 0 #000, 0 0 3px rgba(0, 0, 0, 0.8);
}

.ko-server-card.is-premium .ko-card-text {
    color: #ffd978;
}


/* Skill seviyesi rozeti (1..5) */
.skill-icon-frame {
    position: relative;
}

.skill-rank-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    min-width: 13px;
    height: 13px;
    padding: 0 2px;
    border: 1px solid #1a1206;
    border-radius: 2px;
    background: linear-gradient(180deg, #fff1a8 0%, #d9a52e 55%, #8a5c10 100%);
    color: #1b1204;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 12px;
    text-align: center;
    box-sizing: border-box;
}

.skill-rank-badge[hidden] {
    display: none;
}


/* Kullanılan skill / iksir kartları: karakterin sağ üstünde alt alta şeritler */
.use-cards {
    position: absolute;
    z-index: 9150;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.use-card {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 150px;
    height: 18px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.43) 60%, rgba(0, 0, 0, 0) 100%);
    animation: useCardIn 0.22s ease-out, useCardOut 0.4s ease-in 2.2s forwards;
}

.use-card i {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: 1px;
    border: 1px solid #96825a;
    background: #0a0806;
    flex-shrink: 0;
}

.use-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.use-card span {
    color: #fff;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

@keyframes useCardIn {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: none; }
}

@keyframes useCardOut {
    to { opacity: 0; }
}


/* Ticaret: iki tarafta aynı Noah kutusu, sürükle bırak */
.trade-noah input[disabled] {
    color: #ffd978;
    opacity: 1;
    -webkit-text-fill-color: #ffd978;
    cursor: default;
}

.trade-grid.is-drop,
.trade-bag.is-drop {
    outline: 1px solid #6fdc6f;
    box-shadow: 0 0 8px rgba(111, 220, 111, 0.45);
}

.trade-cell.is-dragging {
    opacity: 0.35;
}

.trade-drag-ghost {
    position: fixed;
    z-index: 100000;
    width: 34px;
    height: 34px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.player-context-menu {
    position: fixed;
    z-index: 100200;
    width: 150px;
    padding: 4px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 2px #261918, 0 8px 22px rgba(0, 0, 0, 0.82);
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.player-context-menu[hidden] {
    display: none;
}

.player-context-menu button {
    display: block;
    width: 100%;
    height: 24px;
    padding: 0 8px;
    border: 0;
    border-bottom: 1px solid rgba(78, 61, 55, 0.55);
    background: transparent;
    color: #e0dcd7;
    font-size: 11px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    text-shadow: 1px 1px 1px #000;
}

.player-context-menu button:last-child {
    border-bottom: 0;
}

.player-context-menu button:hover {
    background: linear-gradient(105deg, rgba(101, 46, 38, 0.96), rgba(51, 23, 20, 0.96));
    color: #f0ddd0;
}

.user-info-panel {
    position: fixed;
    z-index: 100150;
    left: 50%;
    top: 50%;
    width: min(690px, calc(100vw - 28px));
    transform: translate(-50%, -50%);
    background: rgba(14, 12, 10, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78);
    color: #e9dec8;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.user-info-panel[hidden] {
    display: none;
}

.user-info-body {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 10px;
    padding: 10px;
}

.user-info-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-info-hero img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.user-info-hero b,
.user-info-hero span {
    display: block;
}

.user-info-hero b {
    color: #ffd978;
    font-size: 13px;
}

.user-info-card dl {
    display: grid;
    gap: 4px;
    margin: 0 0 10px;
}

.user-info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
}

.user-info-card dt {
    color: #9f9584;
}

.user-info-card dd {
    margin: 0;
    color: #f2e7c8;
    font-weight: 700;
}

.user-info-equipment,
.user-info-inventory {
    display: grid;
    grid-template-columns: repeat(5, 38px);
    grid-auto-rows: 38px;
    gap: 4px;
    align-content: start;
}

.ui-item-cell {
    position: relative;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.48);
    box-shadow: inset 0 0 0 1px #30261a;
}

.ui-item-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ui-item-cell b,
.ui-item-cell em {
    position: absolute;
    color: #fff0a8;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
}

.ui-item-cell b {
    left: 2px;
    top: 1px;
}

.ui-item-cell em {
    right: 2px;
    bottom: 1px;
}

.party-panel {
    position: fixed;
    top: 84px;
    right: 14px;
    z-index: 58;
    width: 150px;
    color: #fff;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    text-shadow: 1px 1px 1px #000;
}

.party-panel[hidden] {
    display: none;
}

.party-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 18px;
    padding: 0 2px;
    color: #6feaff;
    font-size: 11px;
    font-style: italic;
    font-weight: 800;
}

.party-head button,
.party-row button {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: rgba(80, 18, 14, 0.72);
    color: #fff;
    font-size: 12px;
    line-height: 12px;
    cursor: pointer;
}

.party-row {
    display: grid;
    grid-template-columns: 15px 1fr 14px;
    align-items: center;
    gap: 2px;
    min-height: 23px;
}

.party-no {
    color: #ff3b3b;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.party-info b {
    display: block;
    color: #ffd978;
    font-size: 10.5px;
    line-height: 1.05;
}

.party-info i {
    display: block;
    height: 7px;
    margin-top: 2px;
    background: rgba(25, 4, 4, 0.8);
}

.party-info em {
    display: block;
    height: 100%;
    background: linear-gradient(180deg, #4df15d 0%, #166f21 100%);
}

/* Adet penceresi */
.ko-amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px 12px;
}

.ko-amount-row input {
    width: 110px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid #4a3f30;
    background: #0c0a08;
    color: #ffd978;
    font-weight: 800;
    text-align: center;
    box-sizing: border-box;
}


/* Düello: rakibin adı kırmızı, arena zemini, geri sayım */
.player-name.is-enemy {
    color: #ff4a3a;
}

.game-map-layer[data-zone="arena"] {
    background-color: #24180f;
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(151, 92, 42, 0.32) 0 19%, transparent 20%),
        radial-gradient(ellipse at 50% 50%, transparent 0 30%, rgba(95, 36, 24, 0.42) 31%, transparent 33%),
        radial-gradient(circle at 28% 38%, rgba(88, 75, 60, 0.55) 0 3px, transparent 8px),
        radial-gradient(circle at 76% 58%, rgba(72, 58, 45, 0.50) 0 4px, transparent 10px),
        linear-gradient(135deg, #2c1f14 0%, #1a120c 52%, #2b1b12 100%);
    background-size: 100% 100%, 100% 100%, 210px 190px, 260px 230px, 100% 100%;
    box-shadow: inset 0 0 120px 40px rgba(0, 0, 0, 0.8);
}

.duel-countdown {
    position: fixed;
    left: 50%;
    top: 34%;
    z-index: 60;
    transform: translate(-50%, -50%);
    color: #ffd978;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 64px;
    font-weight: 900;
    pointer-events: none;
    text-shadow: 0 0 12px rgba(255, 120, 40, 0.8), 2px 2px 0 #000, -2px -2px 0 #000;
    animation: duelTick 1s ease-out infinite;
}

.duel-countdown.is-go {
    color: #ff5a3a;
    animation: none;
}

@keyframes duelTick {
    0% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
    30% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}


/* Ayarlar sol menüsü tüm butonları sığdırır (gerekirse kendi içinde kayar) */
.settings-side-tabs {
    gap: 3px;
}

.settings-side-tabs button {

    height: 22px;

    min-height: 22px;

    text-align: center;

}


/* ========================================================
   KO İKONU (isim geçen her yerde)
   ======================================================== */
.ko-name-icon {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    object-fit: contain;
    vertical-align: -2px;
    flex-shrink: 0;
}

.rank-name img,
.friend-avatar img,
.ko-nearby-icon img,
.clan-member-row .job-icon {
    object-fit: contain;
}

/* ========================================================
   FISILTI KUTULARI: kutu + sağa açılan konuşma
   ======================================================== */
.ko-whisper-stack {
    margin-bottom: 14px;
    gap: 3px;
}

.ko-whisper-item {
    position: relative;
}

.ko-whisper-card {
    width: 134px;
    height: 20px;
    line-height: 20px;
    padding-left: 4px;
    font-size: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.ko-whisper-card.is-open {
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.7), 1px 1px 2px rgba(0, 0, 0, 0.75);
}

.ko-whisper-card b {
    padding-left: 0;
}

.ko-whisper-card button {
    width: 18px;
    height: 16px;
    margin-right: 2px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ko-whisper-card button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
}

.ko-whisper-panel {
    position: absolute;
    left: calc(100% + 4px);
    bottom: 0;
    z-index: 25;
    width: 300px;
}

.ko-whisper-panel header span {
    display: flex;
    align-items: center;
}

/* ========================================================
   HEDEF PENCERESİ: drop ikonu tıklanır, HP altında 5 slot
   ======================================================== */
.target-head button,
.target-drops {
    pointer-events: auto;
}

.target-drops {
    gap: 3px;
    height: auto;
    margin-top: 4px;
}

.target-drops span {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(90, 76, 56, 0.7);
    background: transparent;
    box-sizing: border-box;
}

.target-drops img {
    max-width: 22px;
    max-height: 22px;
}

/* ========================================================
   PAZAR: Fısıltı · Item · Fiyat · Konum (Işınlan)
   ======================================================== */
.market-panel {
    width: min(680px, calc(100vw - 20px));
}

.market-row {
    grid-template-columns: 46px 1fr 110px 150px;
}

.mk-loc {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 6px;
}

.mk-loc em {
    min-width: 0;
    overflow: hidden;
    color: #9fd0ff;
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mk-loc .mail-btn {
    height: 20px;
    padding: 0 8px;
    font-size: 10px;
}

.market-row.is-head .mk-loc {
    justify-content: flex-end;
}

.mk-icon {
    border-color: #4a3925;
    background: #100e0b;
}

/* ========================================================
   OTOMATİK AV + BİLGİ KARTLARI: oyunun pencere stiliyle aynı
   ======================================================== */
.ko-genie,
.ko-genie.is-active {
    border: 1px solid #2b251e;
    border-radius: 3px;
    background: rgba(14, 12, 10, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.ko-genie.is-active {
    border-color: #4a3925;
}

.ko-genie-head {
    height: 22px;
    padding: 0 3px 0 7px;
    border-bottom: 1px solid #2b251e;
    background: #191613;
}

.ko-genie-title {
    color: #e8dfcd;
    font-size: 11px;
    font-weight: 800;
}

.ko-genie-btn,
.ko-genie-btn.is-stop,
.ko-genie-btn.is-menu {
    width: 18px;
    height: 18px;
    border: 1px solid #3d3325;
    border-radius: 2px;
    background: #14521c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ko-genie-btn.is-start {
    background: #14521c;
}

.ko-genie-btn.is-stop {
    background: #661812;
}

.ko-genie-btn.is-menu {
    background: #6e5218;
}

.ko-genie-btn:hover,
.ko-genie-btn.is-stop:hover {
    border-color: #8c6f3d;
    background: #14521c;
    filter: none;
    box-shadow: inset 0 0 5px rgba(255, 217, 120, 0.2);
}

.ko-genie-btn.is-stop:hover {
    background: #661812;
}

.ko-genie-btn.is-menu:hover {
    background: #6e5218;
}

.ko-genie.is-active .ko-genie-btn.is-start {
    border-color: #77c878;
    background: #14521c;
    box-shadow: inset 0 0 5px rgba(85, 220, 92, 0.35);
}

.ko-genie.is-active .ko-genie-btn.is-stop {
    background: #661812;
}

.ko-genie-btn img,
.ko-genie-mini img {
    width: 11px;
    height: 11px;
}

.ko-genie-row {
    color: #d8cfbe;
}

.ko-genie-row.is-time {
    border-bottom: 1px solid #2b251e;
    min-height: 18px;
    padding-right: 4px;
}

.ko-genie-row.is-time i {
    background: linear-gradient(90deg, rgba(140, 111, 61, 0.35), rgba(140, 111, 61, 0.1));
}

.ko-genie-row.is-time span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    line-height: 13px;
}

.ko-genie-row b,
.ko-genie-row.is-target b {
    color: #ffd978;
}

.ko-genie.is-active .ko-genie-row.is-time b {
    color: #ffd978;
}

.ko-genie-mini {
    width: 17px;
    height: 17px;
    border: 1px solid #3d3325;
    border-radius: 2px;
    background: #100e0b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ko-genie-mini:hover {
    border-color: #8c6f3d;
}

.ko-genie-menu {
    border-bottom: 1px solid #2b251e;
    background: #0c0a08;
}

.ko-server-card,
.ko-server-card.is-premium,
.ko-server-card.is-info {
    padding: 0 6px;
    border: 1px solid #2b251e;
    border-radius: 3px;
    background: rgba(14, 12, 10, 0.94);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.ko-server-card::before,
.ko-server-card::after {
    content: none;
    display: none;
}

.ko-server-card .ko-card-text,
.ko-server-card.is-info .ko-card-text {
    color: #d8cfbe;
    font-weight: 800;
}

.ko-server-card.is-premium .ko-card-text {
    color: #ffd978;
}

/* ========================================================
   OYUN İMLECİ (kırmızı)
   ======================================================== */
html,
body,
body *:not(input):not(textarea):not([contenteditable]) {
    cursor: url('/assets/ui/imlec/imlec.svg') 2 2, auto !important;
}

body .game-field .game-map-layer .mob-sprite,
body .game-field .game-map-layer .player-sprite.is-remote {
    cursor: url('/assets/ui/imlec/saldiri.svg') 2 2, auto !important;
}


/* ========================================================
   HARİTA ÇİZİMİ (harita.js): zemin + derinlikli nesneler
   ======================================================== */
.game-map-layer.has-map,
.game-map-layer.has-map[data-zone="town"],
.game-map-layer.has-map[data-zone="arena"] {
    background: #0b0d08;
    box-shadow: none;
}

.map-ground {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
}

.map-prop {
    position: absolute;
    pointer-events: none;
}

.map-flame {
    position: absolute;
    width: 12px;
    height: 18px;
    margin: -16px 0 0 -6px;
    border-radius: 50% 50% 45% 45%;
    background: radial-gradient(ellipse at 50% 70%, #fff3b0 0%, #ffb23a 38%, rgba(230, 70, 20, 0.85) 70%, rgba(200, 40, 10, 0) 100%);
    box-shadow: 0 0 18px 8px rgba(255, 140, 40, 0.35), 0 0 60px 26px rgba(255, 120, 30, 0.12);
    pointer-events: none;
    transform-origin: 50% 100%;
    animation: mapFlame 0.9s ease-in-out infinite alternate;
}

.map-flame.is-lamp {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 160, 0.9) 0%, rgba(255, 200, 110, 0.35) 45%, rgba(255, 190, 90, 0) 100%);
    box-shadow: 0 0 34px 16px rgba(255, 190, 90, 0.16);
    animation: mapLamp 3s ease-in-out infinite alternate;
}

@keyframes mapFlame {
    0% { transform: scale(1, 1) rotate(-3deg); opacity: 0.9; }
    50% { transform: scale(0.9, 1.12) rotate(2deg); opacity: 1; }
    100% { transform: scale(1.05, 0.95) rotate(-1deg); opacity: 0.85; }
}

@keyframes mapLamp {
    from { opacity: 0.75; }
    to { opacity: 1; }
}


/* ========================================================
   PARTİ PENCERESİ: kartların altında, sürüklenebilir; HP kırmızı, MP mavi
   ======================================================== */
.party-panel {
    width: 156px;
    padding: 0 0 3px;
    border: 1px solid #2b251e;
    border-radius: 3px;
    background: rgba(14, 12, 10, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.party-head {
    height: 20px;
    padding: 0 3px 0 7px;
    border-bottom: 1px solid #2b251e;
    background: #191613;
    color: #e8dfcd;
    font-style: normal;
    cursor: move;
    touch-action: none;
}

.party-row {
    grid-template-columns: 14px 1fr 14px;
    padding: 2px 3px 0;
}

.party-row.is-offline {
    opacity: 0.5;
    filter: grayscale(1);
}

.party-row.is-offline .ko-hud-bar-fill {
    width: 0 !important;
}

.party-row.is-offline .ko-hud-bar-text {
    font-size: 0;
}

.party-row.is-offline .is-hp .ko-hud-bar-text::after {
    content: 'Çevrim dışı';
    font-size: 10px;
}

.party-info b {
    display: flex;
    align-items: center;
    color: #6fb8ff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.party-leader {
    margin-right: 2px;
    color: #ffd978;
    font-style: normal;
}

.party-info i {
    height: 5px;
    margin-top: 2px;
    border: 1px solid #000;
    background: rgba(20, 6, 4, 0.85);
}

.party-info i.is-mp {
    margin-top: 1px;
    background: rgba(4, 8, 22, 0.85);
}

.party-info i.is-hp em {
    background: linear-gradient(180deg, #ff5a4a 0%, #c81a10 55%, #7a0805 100%);
}

.party-info i.is-mp em {
    background: linear-gradient(180deg, #6fb2ff 0%, #2a64d8 55%, #12306e 100%);
}

/* Partideki oyuncuların (ve kendi) isimleri mavi */
.player-name.is-party {
    color: #6fb8ff;
}

.player-name.is-party.is-enemy {
    color: #ff4a3a;
}

/* EXP / Noah kazanç kartları */
.gain-cards .use-card span {
    font-weight: 900;
}

.use-card.is-exp span {
    color: #b6f58a;
}

.use-card.is-noah span {
    color: #ffd978;
}


/* ========================================================
   KARAKTER BİLGİSİ: karakter paneli + ekipman alanı, boşluksuz
   ======================================================== */
.user-info-panel {
    --inventory-slot-size: 36px;
    --inventory-slot-gap: 4px;
    width: auto;
    border: 1px solid #2b251e;
    border-radius: 3px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: 275px auto;
    align-items: start;
    gap: 8px;
    padding: 6px 8px 8px 0;
}

.user-info-char.karakter-body {
    padding: 6px 0 0 6px;
}

.user-info-name {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px 4px;
    color: #e8dfcd;
    font-size: 12px;
}

.user-info-name em {
    margin-left: auto;
    color: #ff3b3b;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 800;
}

.user-info-wear {
    padding-top: 6px;
}

.user-info-wear .inventory-wear {
    padding: 6px;
    border: 1px solid #2b251e;
    background: rgba(8, 7, 6, 0.6);
}

/* Genel: HTML ile üretilen item hücreleri tier çerçevesini taşır */
.trade-cell.has-item,
.anvil-bag-cell.has-item,
.anvil-slot.has-item {
    border-style: solid;
    border-width: 1px;
}

/* Oyun alanı: kenarlarda hafif karartı (harita loşluğu) */
.game-field::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 9500;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.42) 100%);
}


/* Çeşme: canlı su (akış, fıskiye, halka, pırıltı) */
.map-water {
    position: absolute;
    display: block;
    pointer-events: none;
}

.map-water.is-stream {
    width: 5px;
    margin-left: -2px;
    border-radius: 3px;
    transform-origin: 50% 0;
    transform: rotate(var(--lean, 0deg));
    background: repeating-linear-gradient(180deg, rgba(215, 240, 255, 0.85) 0 5px, rgba(120, 185, 225, 0.35) 5px 11px);
    background-size: 100% 11px;
    filter: blur(0.3px);
    opacity: 0.85;
    animation: waterFlow 0.45s linear infinite;
}

.map-water.is-jet {
    width: 8px;
    height: 20px;
    margin: -6px 0 0 -4px;
    border-radius: 50% 50% 40% 40%;
    background: radial-gradient(ellipse at 50% 80%, rgba(220, 245, 255, 0.9) 0%, rgba(150, 210, 240, 0.4) 55%, rgba(150, 210, 240, 0) 100%);
    transform-origin: 50% 100%;
    animation: waterJet 0.6s ease-in-out infinite alternate;
}

.map-water.is-ripple {
    width: 34px;
    height: 12px;
    margin: -6px 0 0 -17px;
    border: 1.5px solid rgba(210, 240, 255, 0.55);
    border-radius: 50%;
    animation: waterRipple 2.2s ease-out infinite;
}

.map-water.is-glint {
    width: 3px;
    height: 3px;
    margin: -1px 0 0 -1px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 2px rgba(200, 235, 255, 0.8);
    animation: waterGlint 3.3s ease-in-out infinite;
}

@keyframes waterFlow {
    from { background-position: 0 0; }
    to { background-position: 0 11px; }
}

@keyframes waterJet {
    from { transform: scaleY(0.8); opacity: 0.8; }
    to { transform: scaleY(1.15); opacity: 1; }
}

@keyframes waterRipple {
    0% { transform: scale(0.3); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes waterGlint {
    0%, 70%, 100% { opacity: 0; transform: scale(0.4); }
    80% { opacity: 1; transform: scale(1.2); }
}


/* ========================================================
   PARTİ: başlık ayrı kutu, her üye ayrı kart (yarı saydam + bulanık zemin)
   ======================================================== */
.party-panel {
    width: 172px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.party-head,
.party-row {
    border: 1px solid rgba(110, 92, 64, 0.75);
    border-radius: 3px;
    background: rgba(12, 10, 8, 0.52);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.party-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    padding: 0 7px;
    color: #e8dfcd;
    font-size: 11px;
}

.party-head span {
    color: #b8ab92;
    font-size: 10px;
    font-weight: 700;
}

.party-members {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.party-row {
    grid-template-columns: 14px 1fr 16px;
    min-height: 0;
    padding: 4px 4px 5px 3px;
}

.party-info b {
    gap: 2px;
}

.party-info .ko-name-icon {
    margin-right: 1px;
}

.party-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #6fb8ff;
}

.party-row.is-leader .party-name {
    color: #ffd978;
}

.party-row button {
    align-self: start;
    width: 15px;
    height: 15px;
    border: 1px solid #6b2a22;
    border-radius: 2px;
    background: rgba(90, 20, 14, 0.8);
}

.party-row button:hover {
    background: #a8281c;
}

/* ========================================================
   İSTEK PENCERESİ (ticaret / VS / parti / klan): KO tarzı altın çerçeveli, bulanık zeminli
   ======================================================== */
.ko-requests {
    top: 30%;
    gap: 10px;
}

.ko-request {
    position: relative;
    width: 340px;
    min-height: 140px;
    padding: 14px 18px 14px;
    border: 1px solid #a56554;
    border-radius: 0;
    background: rgba(12, 10, 9, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 2px #261918, 0 14px 40px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    animation: targetPop 0.2s ease-out;
}

.ko-request-corner {
    display: none !important;
}

.ko-request-title {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #4e3d37;
    color: #f0ddd0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #000;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ko-request-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8cfbe;
    box-shadow: 0 0 4px rgba(216, 207, 190, 0.55);
    flex-shrink: 0;
    display: inline-block;
}

.ko-request p {
    flex: 1;
    margin: 0 0 14px;
    color: #e0dcd7;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    text-shadow: 0 1px 2px #000;
}

.ko-request .ko-request-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ko-request button {
    flex: 1;
    height: 28px;
    border-radius: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11.5px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    user-select: none;
}

.ko-request button[data-yes],
.ko-request button:first-child {
    border: 1px solid #ad6253;
    background: linear-gradient(105deg, rgba(101, 46, 38, 0.96), rgba(51, 23, 20, 0.96));
    box-shadow: inset 0 0 0 1px #291815;
    color: #f0e1d4;
}

.ko-request button[data-yes]:hover,
.ko-request button:first-child:hover {
    border-color: #d29a83;
    background: linear-gradient(105deg, #793b30, #48201b);
    color: #fff0e5;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 10px rgba(146, 65, 51, 0.35);
}

.ko-request button[data-no],
.ko-request button:last-child {
    border: 1px solid #4c4740;
    background: rgba(16, 12, 11, 0.9);
    box-shadow: inset 0 0 0 1px #1d1a19;
    color: #c9c1bb;
}

.ko-request button[data-no]:hover,
.ko-request button:last-child:hover {
    border-color: #744638;
    background: rgba(30, 20, 18, 0.95);
    color: #ffffff;
}

/* ========================================================
   KARAKTER BİLGİSİ: ad başlıkta, sürüklenebilir, ekipman alanı tam boy, item kartı üstte
   ======================================================== */
.item-tip {
    z-index: 100300;
}

.user-info-panel [data-user-info-drag] {
    cursor: move;
}

.user-info-title {
    display: flex;
    align-items: center;
    gap: 2px;
}

.user-info-title em {
    margin-left: 8px;
    color: #ff3b3b;
    font-style: normal;
    font-size: 10.5px;
}

.user-info-grid {
    align-items: stretch;
    padding: 6px 6px 6px 0;
}

.user-info-wear {
    display: flex;
    padding-top: 6px;
}

.user-info-wear .inventory-wear {
    flex: 1;
    justify-content: space-between;
    box-sizing: border-box;
}

.user-info-wear .inventory-top {
    flex: 1;
}

.user-info-wear .inventory-character-card {
    height: 100%;
}

/* Sarmalayıcı yalnızca v2 grid kurallarını taşır; çift çerçeve ve envanter arka planı istenmez */
.user-info-wear .inventory-body.is-v2 {
    padding: 0;
    background: none;
    gap: 0;
}


/* Oyun sayfası kaymaz: pencereler ekranın dışına itilemez */
body:has(.game-field) {
    overflow: hidden;
}

/* Parti kartı: üstte isim, altta HUD gibi HP/MP barları; X barların boyunu kaplar */
.party-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 4px 4px 3px;
}

.party-top {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    font-size: 10.5px;
    font-weight: 800;
}

.party-top .party-no {
    width: 12px;
    flex-shrink: 0;
}

.party-bottom {
    display: flex;
    align-items: stretch;
    gap: 3px;
}

.party-bars {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 1px;
    border: 2px solid #5a4f35;
    border-radius: 1px;
    background: #060809;
    box-shadow: inset 0 0 4px #000, 0 1px 4px rgba(0, 0, 0, 0.85);
}

.party-bars .ko-hud-bar-row {
    height: 11px;
}

.party-bars .ko-hud-bar-text {
    font-size: 9px;
    letter-spacing: 0.2px;
}

.party-row .party-bottom button {
    align-self: stretch;
    width: 18px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}

/* Çeşme (yukarıdan): dışa dökülen su ve yuvarlak halkalar */
.map-water.is-spout {
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    transform-origin: 0 50%;
    background: repeating-linear-gradient(90deg, rgba(215, 240, 255, 0.85) 0 5px, rgba(120, 185, 225, 0.3) 5px 10px);
    background-size: 10px 100%;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 60%, transparent 100%);
    animation: waterSpout 0.4s linear infinite;
}

@keyframes waterSpout {
    from { background-position: 0 0; }
    to { background-position: 10px 0; }
}

.map-water.is-ripple {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
}

.map-water.is-jet {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 250, 255, 0.95) 0%, rgba(160, 215, 240, 0.5) 50%, rgba(160, 215, 240, 0) 100%);
    transform-origin: 50% 50%;
    animation: waterJetTop 0.7s ease-in-out infinite alternate;
}

@keyframes waterJetTop {
    from { transform: scale(0.75); opacity: 0.75; }
    to { transform: scale(1.25); opacity: 1; }
}

.party-row {
    align-items: stretch;
    text-align: left;
}

.party-top {
    justify-content: flex-start;
}


/* ========================================================
   FISILTI: kartlar daha yukarıda, konuşma kartın hizasından açılır;
   kendi mesajı sağda, karşı tarafınki solda; yeni mesajda kart yanıp söner
   ======================================================== */
.ko-whisper-stack {
    margin-bottom: 150px;
}

.ko-whisper-stack.is-free {
    position: fixed;
    z-index: 26;
    margin: 0;
    width: auto;
}

.ko-whisper-panel {
    top: 0;
    bottom: auto;
}

.ko-whisper-card {
    touch-action: none;
}

.ko-whisper-card.has-new {
    animation: whisperBlink 0.8s ease-in-out infinite alternate;
}

@keyframes whisperBlink {
    from {
        background: linear-gradient(180deg, rgba(76, 106, 102, 0.92), rgba(26, 36, 35, 0.94));
        box-shadow: inset 0 0 0 1px rgba(205, 220, 188, 0.28), 1px 1px 2px rgba(0, 0, 0, 0.75);
    }
    to {
        background: linear-gradient(180deg, rgba(160, 130, 50, 0.95), rgba(70, 52, 16, 0.95));
        box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.9), 0 0 10px rgba(255, 200, 80, 0.7);
    }
}

.ko-whisper-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ko-whisper-msg {
    max-width: 78%;
    padding: 3px 7px;
    border-radius: 6px;
    word-break: break-word;
}

.ko-whisper-msg.is-mine {
    align-self: flex-end;
    background: rgba(60, 100, 150, 0.4);
    color: #e6f1ff;
    text-align: right;
    border-bottom-right-radius: 1px;
}

.ko-whisper-msg.is-theirs {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: #efe6d4;
    border-bottom-left-radius: 1px;
}

.ko-whisper-msg.is-system {
    align-self: center;
    background: none;
}

/* Parti paneli pencerelerin (envanter vb.) altında kalır */
.party-panel {
    z-index: 45;
}

/* Mob drop slotları: tier rengi + bilgi kartı */
.target-drops span.has-item {
    border-width: 1px;
    border-style: solid;
    cursor: help;
}


/* ========================================================
   ANVIL: bölüm seçimi (Item Geliştirme / Takı Geliştirme / Craft)
   ======================================================== */
.anvil-modes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.anvil-modes[hidden],
.anvil-body[hidden],
.anvil-item-slot[hidden] {
    display: none !important;
}

.anvil-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #3d3325;
    border-radius: 3px;
    background: linear-gradient(180deg, #1d1914 0%, #100e0b 100%);
    color: #d8cfbe;
    text-align: left;
    cursor: pointer;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.anvil-mode:hover {
    border-color: #8c6f3d;
    background: linear-gradient(180deg, #2a2216 0%, #15110b 100%);
}

.anvil-mode-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4a3925;
    background: #0a0806;
}

.anvil-mode-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.anvil-mode-text b {
    display: block;
    color: #ffd978;
    font-size: 12px;
}

.anvil-mode-text em {
    display: block;
    margin-top: 2px;
    color: #a89f91;
    font-size: 10px;
    font-style: normal;
    line-height: 1.35;
}

.anvil-item-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.anvil-panel[data-anvil-mode="accessory"] .anvil-item-col .anvil-slot,
.anvil-panel[data-anvil-mode="craft"] .anvil-item-col .anvil-slot {
    width: 36px;
    height: 36px;
}

.anvil-actions {
    grid-template-columns: repeat(4, 1fr);
}

.anvil-bag-cell.is-dim {
    opacity: 0.35;
    filter: grayscale(0.7);
}

/* Moblar daha koyu ve az doygun (haritayla uyum) */
.game-map-layer .mob-sprite {
    filter: brightness(0.78) saturate(0.72) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.game-map-layer .mob-sprite.is-hit {
    animation: mobHitDark 0.25s ease-out;
}

@keyframes mobHitDark {
    0% { filter: brightness(1.9) saturate(0.9) drop-shadow(0 0 6px #ff5a4a); }
    100% { filter: brightness(0.78) saturate(0.72) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); }
}

/* Oyun alanı: daha karanlık, hafif horror atmosferi */
.game-field::after {
    background:
        radial-gradient(ellipse at 50% 52%, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(180deg, rgba(3, 6, 4, 0.18) 0%, rgba(0, 0, 0, 0.28) 100%);
    box-shadow: inset 0 0 130px 42px rgba(0, 0, 0, 0.62);
}

/* Harita karartısı kalırken karakterler çok az daha okunur kalsın */
.game-map-layer .player-sprite {
    filter: brightness(1.10) saturate(1.04) drop-shadow(0 7px 7px rgba(0, 0, 0, 0.55));
}


/* ========================================================
   ENVANTER: her yerde 6 sütun (anvil ile aynı)
   ======================================================== */
.inventory-bag-grid {
    grid-template-columns: repeat(6, var(--inventory-slot-size));
}

.inventory-panel {
    width: min(520px, calc(100vw - 24px));
}

.trade-bag {
    grid-template-columns: repeat(6, 38px);
}

/* ========================================================
   ANVIL: Item Eritme (üstte 6 x 3 slot)
   ======================================================== */
.anvil-work[hidden],
.anvil-melt[hidden],
.anvil-break[hidden],
.anvil-actions[hidden] {
    display: none !important;
}

.anvil-melt {
    padding: 8px;
    border: 1px solid #2b251e;
    background: rgba(8, 7, 6, 0.6);
}

.anvil-melt-grid {
    display: grid;
    grid-template-columns: repeat(6, 38px);
    grid-auto-rows: 38px;
    gap: 4px;
    justify-content: center;
}

.anvil-melt-grid .anvil-slot {
    width: 38px;
    height: 38px;
    position: relative;
}

.anvil-melt-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 8px;
    color: #a89f91;
    font-size: 11px;
}

.anvil-melt-total img {
    width: 14px;
    height: 14px;
}

.anvil-melt-total b {
    color: #ffd978;
    font-size: 12px;
}

.anvil-actions.is-melt {
    grid-template-columns: repeat(3, 1fr);
}

.anvil-actions.is-break {
    grid-template-columns: repeat(2, 1fr);
}

.anvil-break {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 10px;
    border: 1px solid #2b251e;
    background: radial-gradient(circle at 76px 50%, rgba(110, 67, 160, 0.22), transparent 130px), rgba(8, 7, 6, 0.72);
}

.anvil-break-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #a89f91;
    font-size: 10px;
    font-weight: 800;
}

.anvil-break-source {
    width: 50px;
    height: 50px;
}

.anvil-break-rewards {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
}

.anvil-break-roulette {
    width: 72px;
    height: 72px;
    border-color: #4b4033;
    background: radial-gradient(circle at 50% 35%, rgba(255, 232, 150, 0.12), rgba(18, 12, 8, 0.95) 58%, #060403);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.86), 0 0 16px rgba(154, 107, 40, 0.12);
}

.anvil-break-roulette img {
    max-width: 58px;
    max-height: 58px;
}

.anvil-break.is-rolling .anvil-break-roulette {
    animation: anvilRewardSpin 0.42s linear infinite;
}

.anvil-break-roulette.is-winner {
    border-color: #ffe08a !important;
    box-shadow: inset 0 0 8px rgba(255, 224, 138, 0.5), 0 0 16px rgba(255, 210, 80, 0.9) !important;
    transform: scale(1.08);
}

@keyframes anvilRewardSpin {
    0%, 100% { filter: brightness(0.75); transform: scale(0.96); }
    50% { filter: brightness(1.6); transform: scale(1.04); }
}

.anvil-melt.is-melting .anvil-slot.has-item {
    animation: anvilMelt 0.9s ease-in forwards;
}

@keyframes anvilMelt {
    0% { filter: none; transform: scale(1); }
    40% { filter: brightness(2) sepia(1) saturate(4) hue-rotate(-20deg); box-shadow: 0 0 14px #ff8a2a; }
    100% { filter: brightness(3) sepia(1) saturate(5); transform: scale(0.2); opacity: 0; }
}

/* ========================================================
   SKILL EFEKTLERİ (skill-fx.js)
   ======================================================== */
.sfx {
    position: absolute;
    display: block;
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 0.72;
}

.sfx-flash,
.sfx-spark,
.sfx-flame,
.sfx-aura,
.sfx-dome {
    border-radius: 50%;
    mix-blend-mode: screen;
}

.sfx-ring {
    border-style: solid;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
}

.sfx-flame {
    border-radius: 50% 50% 42% 42%;
}

.sfx-svg {
    position: absolute;
    overflow: visible;
    pointer-events: none;
}

.sfx-streak {
    height: 6px !important;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(160, 210, 255, 0) 0%, #cfe8ff 60%, #ffffff 100%);
    box-shadow: 0 0 10px #9fd0ff;
}

.sfx-arrow {
    height: 4px !important;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 240, 200, 0) 0%, #a9854f 35%, #e8d6b0 88%, #ffffff 100%);
    box-shadow: 0 0 6px rgba(255, 220, 150, 0.8);
}

.sfx-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    border: 5px solid transparent;
    border-left: 8px solid #f4f4f4;
    border-right: 0;
    transform: translateY(-50%);
}

.sfx-arrow.is-green { box-shadow: 0 0 10px #6fff6f, 0 0 18px #2fcf2f; }
.sfx-arrow.is-gold { height: 6px !important; box-shadow: 0 0 12px #ffcf3a, 0 0 22px #ff9a2a; }
.sfx-arrow.is-blue { box-shadow: 0 0 10px #9fc8ff, 0 0 18px #5a8cff; }

.sfx-orb {
    border-radius: 50%;
}

.sfx-orb.is-fire {
    background: radial-gradient(circle at 40% 40%, #ffffff 0%, #fff1a0 20%, #ffae33 45%, #ff4a1a 70%, rgba(200, 40, 10, 0) 100%);
    box-shadow: 0 0 18px 6px rgba(255, 120, 30, 0.8), 0 0 40px 12px rgba(255, 80, 20, 0.35);
}

.sfx-orb.is-meteor {
    background: radial-gradient(circle at 40% 40%, #fff6d0 0%, #ffae33 30%, #c8330e 55%, #3a1a0e 80%, rgba(20, 10, 5, 0) 100%);
    box-shadow: 0 0 26px 10px rgba(255, 110, 30, 0.85), 0 0 60px 20px rgba(255, 70, 20, 0.35);
}

.sfx-shard {
    width: 8px !important;
    height: 26px !important;
    clip-path: polygon(50% 0, 100% 40%, 60% 100%, 40% 100%, 0 40%);
    background: linear-gradient(180deg, #ffffff 0%, #bfe8ff 45%, #5aa6e8 100%);
    filter: drop-shadow(0 0 6px #9fd8ff);
}

.sfx-pillar {
    width: 44px;
    height: 170px;
    transform-origin: 50% 100%;
    border-radius: 40% 40% 10% 10%;
    mix-blend-mode: screen;
    filter: blur(1px);
}

.sfx-pillar.is-fire {
    width: 52px;
    background: linear-gradient(0deg, #ff4a1a 0%, #ffae33 35%, #fff1a0 65%, rgba(255, 240, 160, 0) 100%);
    box-shadow: 0 0 18px 5px rgba(255, 110, 30, 0.42);
}

.sfx-dome {
    width: 110px;
    height: 130px;
    border: 2px solid rgba(220, 230, 245, 0.8);
    background: radial-gradient(ellipse at 40% 35%, rgba(255, 255, 255, 0.45) 0%, rgba(170, 185, 205, 0.25) 45%, rgba(120, 135, 160, 0.1) 70%, transparent 100%);
}

.sfx-ghost {
    width: 56px;
    height: 110px;
    transform: translate(-50%, -80%);
    border-radius: 45% 45% 30% 30%;
    background: radial-gradient(ellipse at 50% 40%, rgba(200, 160, 255, 0.55) 0%, rgba(140, 90, 220, 0.25) 60%, transparent 100%);
    mix-blend-mode: screen;
}

.anvil-actions .anvil-btn {
    white-space: nowrap;
    font-size: 11px;
}


/* Skill ve ganimet kartları tek sütunda, aralarında boşluk yok */
.use-card-column {
    position: absolute;
    z-index: 9150;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.use-card-column .use-cards {
    position: static;
}

.use-card.is-item span {
    color: #9fe6ff;
}


/* ========================================================
   ENVANTER v2: solda 8 ekipman, ortada karakter, sağda 8 takı / pet / kanat;
   altta iki kilitli yuva. Çanta 72 yuva (8 x 9), kaydırma yok.
   Alt şerit: Noah, KO-Noah, çanta doluluğu, Depo ve sağ köşede çöp.
   ======================================================== */
.inventory-panel.is-v2, .inventory-panel:has(.inventory-body.is-v2) {
    width: min(612px, calc(100vw - 24px));
}

.inventory-body.is-v2 {
    grid-template-columns: max-content max-content;
    grid-template-rows: auto auto;
    justify-content: center;
}

.inventory-body.is-v2 .inventory-wear {
    height: auto;
    display: grid;
    grid-template-columns: var(--inventory-slot-size) 150px var(--inventory-slot-size);
    grid-template-rows: repeat(9, var(--inventory-slot-size));
    column-gap: 6px;
    row-gap: var(--inventory-slot-gap);
}

.inventory-body.is-v2 .inv2-col {
    display: grid;
    grid-template-rows: repeat(8, var(--inventory-slot-size));
    gap: var(--inventory-slot-gap);
    grid-row: 1 / span 8;
}

.inventory-body.is-v2 .inv2-col.is-left { grid-column: 1; }
.inventory-body.is-v2 .inv2-col.is-right { grid-column: 3; }

.inventory-body.is-v2 .inventory-character-card {
    grid-column: 2;
    grid-row: 1 / span 9;
    height: auto;
    background: radial-gradient(ellipse at 50% 62%, rgba(255, 217, 120, 0.08) 0%, rgba(0, 0, 0, 0) 62%), #090807;
}

.inventory-body.is-v2 .inventory-character-art {
    width: 136px;
    max-height: 300px;
    bottom: 14px;
}

.inventory-body.is-v2 .inv2-lock {
    grid-row: 9;
}

.inventory-body.is-v2 .inv2-lock.is-left { grid-column: 1; }
.inventory-body.is-v2 .inv2-lock.is-right { grid-column: 3; }

.inventory-body.is-v2 .inventory-bag {
    grid-column: 2;
    grid-row: 1;
    height: auto;
}

.inventory-body.is-v2 .inventory-bag-grid {
    grid-template-columns: repeat(8, var(--inventory-slot-size));
    grid-template-rows: repeat(9, var(--inventory-slot-size));
    overflow: visible;
}

.inv2-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 30px;
}

.inv2-card {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 8px;
    border: 1px solid #4a3b29;
    border-radius: 2px;
    background: linear-gradient(180deg, #16120e 0%, #0b0907 100%);
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.08), inset 0 0 4px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
    color: #f2ead8;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
}

.inv2-footer .inventory-noah,
.inv2-footer .inventory-noah.is-ko,
.inv2-footer .inventory-capacity {
    flex: 1 1 0;
    width: auto;
    order: 0;
    justify-content: flex-start;
    border-right: 1px solid #4a3b29;
}

.inv2-footer .inventory-noah img,
.inv2-footer .inventory-capacity img {
    width: 16px;
    height: 16px;
}

.inv2-footer .inventory-capacity .inventory-tool-btn {
    margin-left: auto;
}

.inv2-depo {
    flex: 0 0 auto;
    cursor: pointer;
    color: #ffd978;
    font-family: inherit;
}

.inv2-depo img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.inv2-depo:hover,
.inv2-depo.is-active {
    border-color: #ffd978;
    filter: brightness(1.15);
}

.inv2-footer .inv2-trash {
    flex: 0 0 30px;
    width: 30px;
    min-height: 0;
    height: 30px;
    cursor: pointer;
}

.inv2-footer .inv2-trash img {
    width: 70%;
    height: 70%;
}

/* Kullanıcı bilgisi penceresi aynı düzeni kopyalar */
.user-info-wear .inventory-body.is-v2 .inventory-wear,
.user-info-wear .inventory-wear:has(.inv2-col) {
    display: grid;
    flex: none;
}

/* Item karşılaştırma: stat satırında giyili iteme göre fark */
.item-tip-diff {
    min-width: 34px;
    margin-left: 6px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
    text-shadow: 1px 1px 0 #000;
}

.item-tip-diff.is-up { color: #6fe36f; }
.item-tip-diff.is-down { color: #ff5a4a; }
.item-tip-diff.is-same { color: #8c8274; }

.item-tip-row.is-missing span,
.item-tip-row.is-missing b {
    color: #8c8274;
}

.item-tip.is-compare {
    box-shadow: 0 0 0 1px #8c6f3d, 0 10px 26px rgba(0, 0, 0, 0.8);
}

/* VS: raunt başlığı ve skor tabelası */
.duel-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.duel-countdown small {
    margin-bottom: 6px;
    color: #f2ead8;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.duel-score {
    position: fixed;
    left: 50%;
    top: 88px;
    z-index: 60;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border: 1px solid #8c6f3d;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(22, 18, 14, 0.95) 0%, rgba(10, 8, 6, 0.95) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    color: #f2ead8;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000;
    pointer-events: none;
}

.ko-hud-buff-slots {
    width: 260px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.ko-buff-card {
    --buff-color: #8fd8ff;
    width: 34px;
    height: 34px;
    position: relative;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, rgba(45, 48, 52, 0.95), rgba(5, 5, 5, 0.95));
    border: 1px solid var(--buff-color);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9), 0 0 8px rgba(143, 216, 255, 0.35);
}

.ko-buff-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ko-buff-card span {
    position: absolute;
    right: 1px;
    bottom: 1px;
    padding: 0 2px;
    background: rgba(0, 0, 0, 0.76);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-shadow: 1px 1px 1px #000;
}

.self-buff-aura {
    --buff-color: #8fd8ff;
    position: absolute;
    width: 116px;
    height: 54px;
    pointer-events: none;
    transform: translate(-50%, -52%);
    opacity: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 56%, rgba(255, 255, 255, 0.18), transparent 38%), radial-gradient(ellipse at 50% 72%, var(--buff-color), transparent 68%);
    mix-blend-mode: screen;
    filter: blur(0.4px);
}

.self-buff-aura.is-active {
    opacity: 0.58;
    animation: selfBuffPulse 1.8s ease-in-out infinite alternate;
}

@keyframes selfBuffPulse {
    from { transform: translate(-50%, -52%) scale(0.92); }
    to { transform: translate(-50%, -55%) scale(1.08); }
}

.duel-score span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.duel-score em {
    color: #ffd978;
    font-style: normal;
    letter-spacing: 0;
    padding: 6px 12px;
    border-inline: 1px solid #685333;
    animation: duelRoundReveal 450ms ease-out;
}

.duel-score i {
    width: 10px;
    height: 10px;
    border: 1px solid #8c6f3d;
    border-radius: 50%;
    background: #0a0806;
}

.duel-score i.is-won {
    background: radial-gradient(circle at 35% 35%, #fff1a8 0%, #d9a52e 55%, #8a5c10 100%);
    box-shadow: 0 0 6px rgba(255, 200, 80, 0.8);
}

.duel-score .is-opp b {
    color: #ff7a6a;
}

/* Görev takibi: çerçeveli mob portresi, başlık, ilerleme çubuğu ve sayı */
.quest-tracker .quest-track-card {
    min-width: 240px;
    min-height: 40px;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid #4a3b29;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(20, 15, 10, 0.92) 0%, rgba(12, 9, 6, 0.8) 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 217, 120, 0.08);
    animation: quest-track-in 0.25s ease-out;
}

@keyframes quest-track-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.quest-tracker .quest-track-pic {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 1px solid #8c6f3d;
    border-radius: 3px;
    background: radial-gradient(circle at 50% 60%, #2e2419 0%, #0c0a08 80%);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
}

.quest-tracker .quest-track-pic.is-mob {
    border-color: #8c3a2a;
    background: radial-gradient(circle at 50% 65%, #3a1a12 0%, #120807 85%);
}

.quest-tracker .quest-track-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 2px;
    box-sizing: border-box;
}

.quest-tracker .quest-track-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.quest-tracker .quest-track-title {
    flex: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quest-tracker .quest-track-bar {
    flex: none;
    display: block;
    height: 4px;
    border-radius: 2px;
    background: #0a0806;
    box-shadow: inset 0 0 0 1px #2b251e;
    overflow: hidden;
}

.quest-tracker .quest-track-bar em {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #b87813 0%, #ffd978 100%);
    transition: width 0.4s ease-out;
}

.quest-tracker .is-done .quest-track-bar em {
    background: linear-gradient(90deg, #2f8a3a 0%, #7dff8a 100%);
}

/* Görev penceresi: mob portresi çerçeveyi doldurur */
.quest-target-icon.is-mob img,
.quest-card-icon.is-mob img {
    padding: 0;
    object-fit: cover;
}

.quest-portrait[src^="data:"] {
    padding: 0;
    object-fit: cover;
    background: radial-gradient(circle at 50% 65%, #3a1a12 0%, #120807 85%);
    border-color: #8c3a2a;
}

/* Envanter alt şeridi: Noah + KO-Noah ekipman alanıyla, doluluk + depo + çöp çantayla aynı hizada */
.inventory-body.is-v2 .inv2-footer {
    grid-row: 2;
    min-width: 0;
}

.inventory-body.is-v2 .inv2-footer.is-left {
    grid-column: 1;
}

.inventory-body.is-v2 .inv2-footer.is-right {
    grid-column: 2;
}

.inventory-body.is-v2 .inv2-footer .inv2-depo {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    min-height: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.inventory-body.is-v2 .inv2-footer .inv2-depo img {
    width: 70%;
    height: 70%;
    opacity: 1;
}

.inventory-body.is-v2 .inv2-footer .inv2-depo.is-active {
    border-color: #ffd978;
    box-shadow: inset 0 0 0 1px rgba(255, 217, 120, 0.5), 0 0 6px rgba(255, 217, 120, 0.35);
}

/* Karakterin 3D görünümü (kodla çizilen model, giydiği ekipmanla) */
.inventory-body.is-v2 .inventory-character-art.is-3d {
    left: 0;
    right: 0;
    top: 22px;
    bottom: 4px;
    width: 100%;
    height: calc(100% - 26px);
    max-height: none;
    transform: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.85));
}

/* ========================================================
   SKILL BARI: orta altta yatay; 4 sayfa (F1 - F4), ">>>" ile diğer sayfalar
   ======================================================== */
.ko-skill-bar {
    left: 50%;
    top: auto;
    bottom: 8px;
    transform: translateX(-50%);
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 4px 5px;
    box-sizing: border-box;
}

.ko-skill-bar .ko-sb-head {
    order: 0;
    width: auto;
    margin: 0;
}

.ko-skill-bar .ko-sb-page-ctrl {
    flex-direction: column;
    width: 16px;
    height: 38px;
    padding: 1px 0;
}

.ko-skill-bar .ko-sb-page-arrow {
    width: 14px;
    height: 10px;
    transform: rotate(90deg);
}

.ko-skill-bar .ko-sb-slots {
    order: 1;
    flex-direction: row;
    width: auto;
    gap: 3px;
}

.ko-skill-bar .ko-sb-slot {
    width: 38px;
    height: 38px;
}

.ko-sb-more-toggle {
    order: 2;
    width: 26px;
    height: 38px;
    padding: 0;
    border: 1px solid #3d3325;
    border-radius: 3px;
    background: #0f0d0a;
    color: #bfa780;
    font-family: Tahoma, 'Segoe UI', sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ko-sb-more-toggle:hover,
.ko-sb-more-toggle.is-open {
    color: #ffd978;
    border-color: #8c6f3d;
}

.ko-sb-more {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 4px);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ko-sb-more[hidden] {
    display: none;
}

.ko-sb-more-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 5px;
    border: 1px solid #4a3e2c;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(37, 32, 27, 0.95) 0%, rgba(16, 13, 11, 0.95) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    opacity: 0.88;
}

.ko-sb-more-row:hover {
    opacity: 1;
    border-color: #8c6f3d;
}

.ko-sb-more-row b {
    width: 16px;
    color: #ffd978;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
}

.ko-sb-mini {
    width: 30px;
    height: 30px;
    border: 1px solid #3d3325;
    border-radius: 3px;
    background: radial-gradient(circle at 50% 30%, #1e1a15 0%, #0b0907 100%);
    box-shadow: inset 0 0 5px #000;
    overflow: hidden;
}

.ko-sb-mini img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skill barı satırları: ana çubukla aynı görünüm, alttan yukarı 1-2-3-4 */
.ko-sb-more {
    flex-direction: column-reverse;
    left: 0;
    right: 0;
    gap: 4px;
}

.ko-sb-more .ko-sb-more-row {
    justify-content: flex-start;
    gap: 5px;
    padding: 4px 5px;
    cursor: default;
    opacity: 1;
}

.ko-sb-more .ko-sb-row-num {
    flex: 0 0 16px;
    width: 16px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3d3325;
    border-radius: 2px;
    background: #0f0d0a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
    color: #ffd978;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.ko-sb-more .ko-sb-xslot {
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.ko-sb-more .ko-sb-xslot.is-empty .ko-sb-icon {
    visibility: hidden;
}

/* satırlar ana çubuktaki ">>>" düğmesinin genişliği kadar içeride biter */
.ko-sb-more .ko-sb-more-row::after {
    content: '';
    flex: 0 0 26px;
}

.ko-sb-more-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ko-sb-more-toggle span {
    display: inline-block;
    transform: rotate(-90deg);
}

/* Görev kartlarında mob portresi: çerçeve ve arka plan yok, mob ortalanmış ve tamamen görünür */
.quest-target-icon.is-mob,
.quest-card-icon.is-mob,
.quest-tracker .quest-track-pic.is-mob {
    border: 0;
    background: none;
    box-shadow: none;
}

.quest-target-icon.is-mob img,
.quest-card-icon.is-mob img,
.quest-tracker .quest-track-pic.is-mob img {
    padding: 0;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
}

.quest-portrait[src^="data:"] {
    border: 0;
    background: none;
    padding: 0;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
}

/* Demirci + envanter yan yana: geliştirilecek itemler envanterden sağ tıkla yüklenir */
.game-modal-stage.has-anvil-companion .game-modal-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.game-modal-stage.has-anvil-companion .game-modal-container > .side-panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin: 0;
}

/* demircinin kendi çanta ızgarası kullanılmaz (envanter açılır); Noah şeridi kalır */
.anvil-panel .anvil-bag-grid {
    display: none;
}

.inventory-slot.is-in-anvil,
.inventory-slot.is-in-trash {
    opacity: 0.35;
    filter: grayscale(0.7);
}

/* açılan skill satırları sohbet penceresinin üstünde kalır */
.ko-skill-bar {
    z-index: 41;
}

/* skill barı: sol menü (≈452px) ile sağ kayıt penceresi (≈258px) arasındaki boşluğun ortası */
.ko-skill-bar {
    left: calc(50% + 97px);
}

/* Hedef kartı: düşen itemlerin hepsi; HP çubuğunun başından sonuna 8 sütun, taşan alt satıra */
.target-drops {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
}

.target-drops[hidden] {
    display: none;
}

.target-drops span {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-drops img {
    width: 84%;
    height: 84%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* ========================================================
   SKILL / İKSİR KARTLARI: yazısız büyük ikon, karakterin solunda ve sağında
   ======================================================== */
.use-card-column {
    width: 0;
    height: 0;
    display: block;
}

.use-card-column .use-side {
    position: absolute;
    top: -46px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.use-card-column .use-side.is-left {
    right: 118px;
    align-items: flex-end;
}

.use-card-column .use-side.is-right {
    left: 118px;
    align-items: flex-start;
}

.use-card.is-icon {
    width: auto;
    height: auto;
    background: none;
    animation: use-icon-pop 0.25s ease-out, use-icon-out 0.45s ease-in 1.75s forwards;
}

.use-card.is-icon i {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0;
    border: 1px solid #c8a24a;
    border-radius: 4px;
    background: #0a0806;
    box-shadow: 0 0 10px rgba(255, 200, 90, 0.45), 0 3px 8px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.use-card.is-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes use-icon-pop {
    0% { opacity: 0; transform: scale(0.4); }
    70% { opacity: 1; transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes use-icon-out {
    to { opacity: 0; transform: translateY(-14px) scale(0.9); }
}

/* ========================================================
   EXP / NOAH / GANİMET: görev kartlarının hemen altında, arka plansız
   ======================================================== */
.hud-feed {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 38;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.hud-feed .quest-tracker {
    position: static;
    transform: none;
}

.hud-feed .gain-cards {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.hud-feed .gain-cards .use-card {
    width: auto;
    height: 20px;
    gap: 5px;
    padding: 0;
    background: none;
    box-shadow: none;
}

.hud-feed .gain-cards .use-card i {
    width: 18px;
    height: 18px;
    border: 0;
    background: none;
    box-shadow: none;
}

.hud-feed .gain-cards .use-card span {
    font-size: 13px;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 6px rgba(0, 0, 0, 0.9);
}

/* Item kartı: "E" (giyili) etiketi görselin sağ alt köşesinde; + seviyesi sağ üstte kalır */
.item-tip-pic-wrapper .item-tip-equipped,
.item-tip-pic .item-tip-equipped {
    top: auto;
    right: -2px;
    bottom: -2px;
}

.item-tip-code {
    display: flex;
    justify-content: space-between;
    color: #c77dff;
    font-size: 11px;
    font-weight: 700;
}

.item-tip-code b {
    color: #e3b8ff;
    letter-spacing: 0.5px;
}

/* Skill / iksir ikonu: çerçevesiz; belirir, yukarı kayar ve 2 sn'de kaybolur */
.use-card.is-icon {
    animation: use-icon-rise 2s ease-out forwards;
}

.use-card.is-icon i {
    border: 0;
    border-radius: 4px;
    background: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.75);
}

@keyframes use-icon-rise {
    0% { opacity: 0; transform: translateY(10px) scale(0.6); }
    12% { opacity: 1; transform: translateY(0) scale(1.08); }
    20% { transform: translateY(-3px) scale(1); }
    75% { opacity: 1; transform: translateY(-26px) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.92); }
}

/* Bekleme süresi: çerçeve içinde yukarıdan aşağı inen karartma perdesi, üst kenarında parlak çizgi */
.ko-sb-cd {
    inset: 2px;
    overflow: hidden;
    background: none;
    border-radius: 2px;
}

.ko-sb-cd::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--cdp, 1) * 100%);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.ko-sb-cd::after {
    inset: auto 0 auto 0;
    bottom: calc(var(--cdp, 1) * 100%);
    height: 2px;
    margin-bottom: -1px;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(255, 210, 110, 0) 0%, rgba(255, 225, 150, 0.95) 50%, rgba(255, 210, 110, 0) 100%);
    box-shadow: 0 0 6px rgba(255, 200, 90, 0.8);
}

/* Açılan skill satırları: ana çubukla birebir aynı (sayfa kontrolü, 10 yuva, sağda ok) */
.ko-sb-more .ko-sb-more-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 5px;
    border: 1px solid #4a3e2c;
    border-radius: 4px;
    background: linear-gradient(180deg, #25201b 0%, #1a1612 35%, #100d0b 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 217, 120, 0.15);
}

.ko-sb-more .ko-sb-more-row::after {
    content: none;
}

.ko-sb-row-slots {
    display: flex;
    flex-direction: row;
    gap: 3px;
}

.ko-sb-more .ko-sb-row-num {
    display: none;
}

/* ok düğmesi: ince çerçeve, küçük ve sade çift ok; ana çubukta yukarı, satırlarda aşağı bakar */
.ko-skill-bar .ko-sb-more-toggle {
    width: 18px;
    height: 38px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid rgba(90, 76, 56, 0.55);
    border-radius: 2px;
    background: rgba(10, 8, 6, 0.6);
    box-shadow: none;
    cursor: pointer;
}

.ko-skill-bar .ko-sb-more-toggle:hover {
    border-color: #8c6f3d;
}

.ko-skill-bar .ko-sb-more-toggle.is-full {
    opacity: 0.3;
    cursor: default;
}

.ko-skill-bar .ko-sb-more-toggle span {
    display: none;
}

.sb-chev {
    display: block;
    width: 6px;
    height: 6px;
    border-top: 1px solid #d9bf85;
    border-left: 1px solid #d9bf85;
    transform: translateY(2px) rotate(45deg);
}

.ko-sb-more-toggle.is-close .sb-chev {
    transform: translateY(-2px) rotate(225deg);
}

.ko-skill-bar .ko-sb-more-toggle:hover .sb-chev {
    border-color: #ffe39a;
}

/* Öldürme duyurusu: diğerleri tek renk (mor-pembe), kendi öldürmen altın */
.ko-chat-msg.is-kill {
    color: #e28cff;
    font-weight: 700;
}

.ko-chat-msg.is-kill.is-own-kill {
    color: #ffd23a;
}

/* ========================================================
   SKILL ÇUBUĞU v3: dış çerçeve yok; kare, şeffaf-bulanık siyah yuvalar (8 adet), aralarında hafif boşluk.
   Solda ayrı kutuda sayfa değiştirme, sağda yukarı (satır aç) / aşağı (satırı kapat) ok.
   Ana satır ve açılan satırlar aynı yapı ve ölçüdedir.
   ======================================================== */
.ko-skill-bar.is-v3 {
    left: 50%;
    top: auto;
    bottom: 8px;
    transform: translateX(-50%);
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.ko-skill-bar.is-v3 .ko-sb-more {
    position: static;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
}

.ko-skill-bar.is-v3 .ko-sb-more[hidden] {
    display: none;
}

.ko-skill-bar.is-v3 .ko-sb-line,
.ko-skill-bar.is-v3 .ko-sb-more .ko-sb-more-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    cursor: default;
}

.ko-skill-bar.is-v3 .ko-sb-more .ko-sb-more-row::after {
    content: none;
}

.ko-skill-bar.is-v3 .ko-sb-slots,
.ko-skill-bar.is-v3 .ko-sb-row-slots {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 4px;
}

/* yuva: kare, şeffaf siyah ve arkası bulanık */
.ko-skill-bar.is-v3 .ko-sb-slot {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(217, 191, 133, 0.22);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: none;
    overflow: hidden;
}

.ko-skill-bar.is-v3 .ko-sb-slot:hover {
    border-color: rgba(255, 217, 120, 0.6);
    box-shadow: 0 0 6px rgba(255, 217, 120, 0.25);
}

.ko-skill-bar.is-v3 .ko-sb-slot.is-empty .ko-sb-icon {
    visibility: hidden;
}

/* sayfa kutusu ve oklar: yuvalarla aynı yükseklikte, ayrı ince çerçevede */
.ko-skill-bar.is-v3 .ko-sb-pager,
.ko-skill-bar.is-v3 .ko-sb-more-toggle {
    flex: 0 0 18px;
    width: 18px;
    height: 42px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 191, 133, 0.22);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: none;
    box-sizing: border-box;
}

.ko-skill-bar.is-v3 .ko-sb-pager {
    justify-content: space-between;
    padding: 2px 0;
}

.ko-skill-bar.is-v3 .ko-sb-more-toggle {
    gap: 2px;
    cursor: pointer;
}

.ko-skill-bar.is-v3 .ko-sb-more-toggle:hover,
.ko-skill-bar.is-v3 .ko-sb-pager:hover {
    border-color: rgba(255, 217, 120, 0.55);
}

.ko-skill-bar.is-v3 .ko-sb-more-toggle.is-full {
    opacity: 0.3;
    cursor: default;
}

.ko-skill-bar.is-v3 .ko-sb-page-arrow {
    width: 14px;
    height: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #bfa780;
    font-size: 7px;
    transform: rotate(90deg);
}

.ko-skill-bar.is-v3 .ko-sb-page-arrow:hover {
    color: #ffe39a;
}

.ko-skill-bar.is-v3 .ko-sb-page-num {
    width: 12px;
    height: 12px;
    border: 0;
    background: none;
    color: #ffd978;
    font-size: 11px;
    font-weight: 900;
}

/* F1 - F4 ile seçilen (1 - 8 tuşlarının kullandığı) sayfanın satırı */
.ko-skill-bar.is-v3 .ko-sb-line.is-page-active .ko-sb-pager {
    border-color: rgba(255, 217, 120, 0.75);
    box-shadow: 0 0 6px rgba(255, 217, 120, 0.35);
}

.ko-skill-bar.is-v3 .ko-sb-line.is-page-active .ko-sb-page-num {
    color: #fff1c4;
    text-shadow: 0 0 4px rgba(255, 217, 120, 0.9);
}

/* Bekleme süresi: yuvanın tamamı kararır; koyu perde yukarıdan aşağı açılır, üst kenarında parlak çizgi */
.ko-sb-slot .ko-sb-cd {
    inset: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.38);
}

.ko-sb-slot .ko-sb-cd::before {
    background: rgba(0, 0, 0, 0.72);
}

.ko-sb-slot .ko-sb-cd b {
    z-index: 1;
    font-size: 13px;
}

/* Sınıfına işlemeyen stat bonusu (ör. Warrior için INT Bonusu): sönük ve üstü çizili */
.item-tip-row.is-off {
    opacity: 0.4;
}

.item-tip-row.is-off span,
.item-tip-row.is-off b {
    text-decoration: line-through;
}

/* Yan çanta (demirci / ticaret açıkken): envanterin yalnız çanta alanı görünür; ekipman, karakter, depo ve
   çöp gizlenir. Bu modda çantada yer değiştirme yapılmaz. */
.inventory-panel.is-bag-only,
.inventory-panel.is-bag-only:has(.inventory-body.is-v2) {
    width: auto;
}

.inventory-panel.is-bag-only .inventory-wear,
.inventory-panel.is-bag-only .inventory-depo,
.inventory-panel.is-bag-only .inv2-footer.is-left,
.inventory-panel.is-bag-only .inv2-depo,
.inventory-panel.is-bag-only .inv2-trash,
.inventory-panel.is-bag-only [data-inventory-trash] {
    display: none !important;
}

.inventory-panel.is-bag-only .inventory-body.is-v2 {
    grid-template-columns: max-content;
}

.inventory-panel.is-bag-only .inventory-body.is-v2 .inventory-bag {
    grid-column: 1;
    grid-row: 1;
}

.inventory-panel.is-bag-only .inv2-footer.is-right {
    grid-column: 1;
    grid-row: 2;
}

.inventory-panel.is-bag-only [data-bag-slot].has-item {
    cursor: pointer;
}

/* Ticaret sırasında eşlik eden envanterde çantayı sırala / düzenle butonunu gizle */
.game-modal-stage[data-active-panel="ticaret"] [data-inventory-sort],
.game-modal-stage[data-active-panel="ticaret"] .inventory-panel [data-inventory-sort],
.trade-panel:not([hidden]) ~ .inventory-panel [data-inventory-sort] {
    display: none !important;
}

/* ticaret penceresi: alttaki mini çanta kaldırıldı */
.trade-panel .trade-bag-title {
    margin-bottom: 4px;
}

/* Shared columns keep the location list and chat aligned with their menus. */
.ko-chat-zone {
    width: min(444px, calc(100vw - 16px));
    --location-width: 98px;
}
.ko-chat-boxes-row,
.ko-chat-tabs-row,
.ko-chat-bottom-row {
    display: grid;
    grid-template-columns: var(--location-width) minmax(0, 1fr);
    gap: 4px;
}
.ko-chat-zone .ko-nearby-box,
.ko-chat-zone .ko-player-tabs-group,
.ko-chat-zone .ko-location-menu,
.ko-chat-zone .ko-chat-box,
.ko-chat-zone .ko-channel-tabs-group,
.ko-chat-zone .ko-left-menu {
    width: 100%;
    min-width: 0;
    max-width: none;
}
.ko-chat-zone .ko-location-menu,
.ko-chat-zone .ko-left-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ko-chat-zone .ko-left-menu { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ko-chat-zone .ko-menu-item { width: 100%; min-width: 0; }
.duel-score {
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    border-bottom: 2px solid #c09a51;
    box-shadow: 0 5px 18px #0009, inset 0 1px #e4c47b26;
}
.duel-score span { min-width: 0; }
.duel-score b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-score em { flex-shrink: 0; }
.duel-score i { flex-shrink: 0; }
.duel-score i.is-won { animation: duelWinPulse 2.4s ease-in-out infinite; }
.karakter-panel[data-side-panel="karakter"] { height: min(360px, calc(100vh - 140px)); }
.karakter-panel[data-side-panel="karakter"] .karakter-body { flex: 1; min-height: 0; overflow: hidden; }
.karakter-panel .karakter-titlebar, .karakter-panel .karakter-tabs { flex-shrink: 0; }
.karakter-panel .karakter-tab-content { min-height: 0; overflow-y: auto; flex: 1; }
.game-modal-stage > [data-side-panel="karakter"] { position: fixed; pointer-events: auto; margin: 0; transform: none; }
.karakter-panel .karakter-tab-content { scrollbar-width: none; }
.karakter-panel .karakter-tab-content::-webkit-scrollbar { display: none; }
.game-modal-container > [data-side-panel="karakter"] { flex-shrink: 0; }
.ko-buff-card { border: 0; box-shadow: none; background: transparent; }
.buff-drag-handle { width: 18px; height: 34px; padding: 0; display: flex; flex-direction: column; justify-content: center; color: #d4b86b; background: #090b0c99; border: 1px solid #76613b; cursor: grab; touch-action: none; }
.buff-drag-handle { align-items: center; gap: 0; }
.buff-drag-handle span { display: block; height: 8px; line-height: 8px; font-size: 14px; }
.quest-tracker .quest-track-card { border: 0; background: transparent; box-shadow: none; }
.quest-tracker .quest-track-pic { border: 0; box-shadow: none; background: transparent; }
.hud-feed .gain-cards { margin-top: 22px; }
.ko-log-msg.is-dmg-deal { color: #fff; }
.ko-log-msg.is-dmg-take, .ko-log-msg.is-damage-take { color: #ff5656; }
.ko-log-msg.is-exp-gain, .use-card.is-exp span { color: #ffd23a; }
.ko-log-msg.is-pickup, .use-card.is-noah span, .use-card.is-item span { color: #55b7ff; }
.ko-log-msg.is-potion { color: #c8a0ff; }
.ko-log-msg { font-weight: 400; font-size: 11px; }
.ko-log-msg.is-potion, .ko-log-msg.is-potion-hp, .ko-log-msg.is-skill-failed { color: #ed4545; }
.ko-log-msg.is-potion-mp, .ko-log-msg.is-mp-used { color: #55b7ff; }
.ko-log-msg.is-skill-use { color: #c9ce63; }
.ko-log-msg .log-crit { color: #bf55ec; font-weight: 700; }
.ko-log-msg.is-ko-point, .ko-log-msg.is-ko-pts { color: #55b7ff; font-weight: 700; }
.ko-hud-frame-wrap { border: 0; box-shadow: none; background: transparent; padding: 0; align-items: stretch; }
.ko-hud-class-box { width: 59px; height: 59px; box-sizing: border-box; }
.ko-hud-bars-box { height: 59px; box-sizing: border-box; }
.ko-hud-name-row { background: #161513; font-weight: 600; }
.ko-hud-name-row b { color: #e2ca85; font-weight: 600; }
.ko-hud-name { letter-spacing: 0; font-weight: 600; }
.ko3d-overlay .self-buff-aura {
    width: 90px;
    height: 130px;
    border: none !important;
    border-radius: 50%;
    background:
        radial-gradient(circle 2px at 22% 28%, #ffffff 100%, transparent),
        radial-gradient(circle 3px at 78% 22%, var(--buff-color, #38ef7d) 100%, transparent),
        radial-gradient(circle 2px at 45% 68%, #ffffff 100%, transparent),
        radial-gradient(circle 3.5px at 82% 72%, var(--buff-color, #38ef7d) 100%, transparent),
        radial-gradient(circle 2.5px at 28% 82%, #ffffff 100%, transparent),
        radial-gradient(circle 2px at 64% 42%, var(--buff-color, #38ef7d) 100%, transparent),
        radial-gradient(circle 3px at 16% 58%, var(--buff-color, #38ef7d) 100%, transparent),
        radial-gradient(circle 2px at 50% 18%, #ffffff 100%, transparent),
        radial-gradient(circle 2.5px at 88% 48%, var(--buff-color, #38ef7d) 100%, transparent),
        radial-gradient(circle 2px at 35% 45%, #ffffff 100%, transparent),
        radial-gradient(ellipse at 50% 55%, rgba(56, 239, 125, 0.12), transparent 72%);
    box-shadow: none !important;
    filter: drop-shadow(0 0 5px var(--buff-color, #38ef7d));
    animation: magicDustFloat 2s ease-in-out infinite alternate;
}
@keyframes magicDustFloat {
    0% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.55; filter: drop-shadow(0 0 4px var(--buff-color, #38ef7d)) brightness(1); }
    50% { transform: translate(-50%, -54%) scale(1.06); opacity: 0.95; filter: drop-shadow(0 0 8px #d4ffe4) brightness(1.35); }
    100% { transform: translate(-50%, -48%) scale(0.98); opacity: 0.7; filter: drop-shadow(0 0 5px var(--buff-color, #38ef7d)) brightness(1.1); }
}
@keyframes duelRoundReveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes duelWinPulse {
    50% { box-shadow: 0 0 9px #edc16c80; }
}
@media (prefers-reduced-motion: reduce) {
    .duel-score em, .duel-score i.is-won { animation: none; }
}

/* Silah takılı değilken yeteneklerin soluk ve kilitli görünümü */
.ko-sb-slot.is-weapon-missing .ko-sb-icon,
.skill-item.is-weapon-missing .skill-icon-frame img:not(.skill-lock-icon-img) {
    filter: grayscale(85%) opacity(0.38) brightness(0.7) !important;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.ko-sb-slot.is-weapon-missing {
    opacity: 0.6;
    cursor: not-allowed;
}
.skill-item.is-weapon-missing {
    opacity: 0.65;
}

/* Yeni karakter paneli - Envanter UI ile birebir uyumlu */
.karakter-panel[data-side-panel="karakter"] {
    width: 275px;
    height: min(366px, calc(100vh - 140px));
    border: 1px solid #2b251e;
    border-radius: 3px;
    background: rgba(14, 12, 10, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    color: #e0d5c1;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    position: relative;
    z-index: 3;
    overflow: hidden;
    user-select: none;
}

.karakter-panel[data-side-panel="karakter"]::before,
.karakter-panel[data-side-panel="karakter"]::after {
    display: none !important;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 8px;
    background: #191613;
    border: 0;
    border-bottom: 1px solid #2b251e;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar strong {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    color: #d8cfbe;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px #000;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar strong::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8cfbe;
    box-shadow: 0 0 4px rgba(216, 207, 190, 0.55);
    flex-shrink: 0;
    display: inline-block;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar > button {
    width: 24px;
    height: 100%;
    min-height: 21px;
    align-self: stretch;
    border: 0;
    border-left: 1px solid #2b251e;
    border-radius: 0;
    background: #3a1a16;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: background 0.12s;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar > button::before {
    content: '×';
    font-size: 14px;
    color: #ffffff;
    line-height: 1;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar > button:hover {
    background: #6b231b;
    color: #fff;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    background: #0e0c0a;
    border: 0;
    border-bottom: 1px solid #2b251e;
    box-sizing: border-box;
    flex-shrink: 0;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn {
    flex: 1;
    height: 20px;
    line-height: 18px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: 1px solid #3a332a;
    border-radius: 2px;
    background: linear-gradient(180deg, #1c1813 0%, #110f0c 100%);
    color: #a89f91;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    box-shadow: none;
    text-shadow: 1px 1px 1px #000;
    padding: 0 4px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn .ko-tab-icon {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    object-fit: contain;
    pointer-events: none;
    flex-shrink: 0;
    opacity: 0.85;
    filter: none;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn span {
    flex: 1;
    text-align: center;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn:hover {
    border-color: #5a4b35;
    color: #ded4bf;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn.is-active {
    color: #ffd978;
    border: 1px solid #8c6f3d;
    background: linear-gradient(180deg, #362919 0%, #1a140b 100%);
    box-shadow: inset 0 0 5px rgba(255, 217, 120, 0.35);
    text-shadow: 0 0 4px rgba(255, 217, 120, 0.4), 1px 1px 1px #000;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn.is-active .ko-tab-icon {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255, 217, 120, 0.5));
}

.karakter-panel[data-side-panel="karakter"] .karakter-body {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 6px;
    gap: 5px;
    background: transparent;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tab-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tab-content[hidden] {
    display: none !important;
}

.karakter-panel[data-side-panel="karakter"] .karakter-box {
    position: relative;
    border: 1px solid #2b251e;
    border-radius: 2px;
    background: rgba(14, 12, 10, 0.78);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.karakter-hero-card {
    display: grid;
    grid-template-columns: 58px 1fr 34px;
    align-items: center;
    gap: 8px;
    min-height: 72px;
    padding: 7px 8px;
}

.karakter-portrait-frame {
    display: grid;
    place-items: center;
    height: 56px;
    border: 1px solid rgba(214, 68, 59, .62);
    background: radial-gradient(ellipse at center, rgba(134, 34, 30, .38), rgba(5,5,6,.92) 70%);
    box-shadow: inset 0 0 0 3px rgba(0,0,0,.62), 0 0 14px rgba(161, 33, 27, .32);
}

.karakter-portrait-frame img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px #000);
}

.karakter-identity {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.karakter-identity strong {
    color: #f3e8df;
    font: 20px/1 Georgia, serif;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.karakter-identity span,
.karakter-identity small {
    color: #d8cfc8;
    font: 12px/1.15 Georgia, serif;
}

.karakter-identity span em {
    margin-left: 6px;
    color: #cda88d;
    font-style: normal;
}

.karakter-hero-mark {
    justify-self: center;
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(219, 40, 34, .5));
}

.karakter-panel[data-side-panel="karakter"] .karakter-top-box {
    padding: 6px 8px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-exp-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 8px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-exp-row .karakter-lbl {
    color: #d8cfc8;
    font: 18px/1 Georgia, serif;
}

.karakter-panel[data-side-panel="karakter"] .karakter-val-pill.is-exp {
    height: 22px;
    border: 1px solid rgba(121, 80, 72, .74);
    background: rgba(0,0,0,.72);
    box-shadow: inset 0 0 0 3px rgba(0,0,0,.56);
}

.karakter-panel[data-side-panel="karakter"] .karakter-exp-fill {
    background:
        linear-gradient(90deg, rgba(255,255,255,.22), transparent 18%, transparent 84%, rgba(255,255,255,.18)),
        linear-gradient(180deg, #f24a43, #a81416 58%, #4e0607);
    box-shadow: inset 0 1px 0 rgba(255, 190, 170, .72), 0 0 14px rgba(197, 22, 20, .44);
}

.karakter-panel[data-side-panel="karakter"] .karakter-val-pill.is-exp b {
    color: #f3ece7;
    font: 12px/1 Georgia, serif;
}

.karakter-panel[data-side-panel="karakter"] .karakter-mid-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 7px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-col-left,
.karakter-panel[data-side-panel="karakter"] .karakter-col-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-field,
.karakter-panel[data-side-panel="karakter"] .karakter-stat-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 5px;
    border: 1px solid rgba(85, 76, 72, .44);
    background: rgba(6, 6, 7, .5);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.7);
}

.karakter-icon-wrap,
.karakter-stat-icon {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
}

.karakter-icon-wrap img,
.karakter-stat-icon img {
    max-width: 17px;
    max-height: 17px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px #000);
}

.karakter-panel[data-side-panel="karakter"] .karakter-lbl,
.karakter-panel[data-side-panel="karakter"] .karakter-stat-name {
    width: auto;
    color: #d8cfc8;
    font: 12px/1 Georgia, serif;
    font-weight: 400;
    text-shadow: 0 2px 8px #000;
}

.karakter-panel[data-side-panel="karakter"] .karakter-val-pill {
    height: 21px;
    min-width: 0;
    padding: 0 5px;
    border: 1px solid rgba(79, 70, 66, .66);
    border-radius: 0;
    background: rgba(3, 3, 4, .7);
    color: #f2e9e2;
    font: 13px/1 Georgia, serif;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.55);
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-row {
    grid-template-columns: 20px 28px 1fr 24px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-row .karakter-val-pill {
    justify-content: center;
}

.karakter-panel[data-side-panel="karakter"] .karakter-plus-btn {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(98, 88, 82, .7);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(26,26,27,.96), rgba(5,5,6,.96));
    color: #d8d1cb;
    font: 16px/1 Georgia, serif;
    box-shadow: inset 0 0 0 3px rgba(0,0,0,.58);
}

.karakter-panel[data-side-panel="karakter"] .karakter-plus-btn:hover:not(.is-disabled) {
    border-color: #d95b50;
    color: #fff;
    background: linear-gradient(180deg, #3d1716, #080606);
    box-shadow: inset 0 0 0 3px rgba(0,0,0,.58), 0 0 12px rgba(214, 38, 32, .35);
}

.karakter-panel[data-side-panel="karakter"] .karakter-plus-btn.is-disabled {
    opacity: .42;
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-points-card {
    min-height: 49px;
    border: 1px solid rgba(113, 87, 78, .62);
    border-radius: 0;
    background: rgba(5, 5, 6, .62);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.62);
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-points-title {
    color: #d8cfc8;
    font: 12px/1 Georgia, serif;
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-points-val {
    color: #ffd67f;
    font: 20px/1 Georgia, serif;
    text-shadow: 0 0 13px rgba(255, 184, 83, .65);
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-box {
    padding: 7px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    border: 0;
    color: #f3e9e0;
    font: 16px/1 Georgia, serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-header::before,
.karakter-panel[data-side-panel="karakter"] .karakter-resist-header::after {
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(214, 48, 41, .7), transparent);
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 7px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-col .karakter-field {
    min-height: 26px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-box {
    min-height: 0;
    padding: 7px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-row {
    min-height: 27px;
    padding: 0 6px;
    border: 1px solid rgba(85, 76, 72, .44);
    background: rgba(6, 6, 7, .5);
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-lbl,
.karakter-panel[data-side-panel="karakter"] .karakter-bonus-val,
.karakter-panel[data-side-panel="karakter"] .karakter-bonus-empty {
    font: 12px/1.3 Georgia, serif;
}

@media (max-width: 760px), (max-height: 760px) {
    .karakter-panel[data-side-panel="karakter"] {
        width: min(275px, calc(100vw - 24px));
        height: min(360px, calc(100vh - 24px));
    }
    .karakter-panel[data-side-panel="karakter"] .karakter-titlebar {
        height: 32px;
        padding-left: 50px;
    }
    .karakter-title-emblem {
        width: 48px;
        height: 48px;
    }
    .karakter-panel[data-side-panel="karakter"] .karakter-title-plate strong {
        font-size: 22px;
    }
    .karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn {
        height: 24px;
        font-size: 12px;
    }
    .karakter-hero-card {
        grid-template-columns: 58px 1fr 34px;
        min-height: 72px;
        gap: 8px;
        padding: 7px 8px;
    }
    .karakter-portrait-frame {
        height: 56px;
    }
    .karakter-identity strong {
        font-size: 20px;
    }
    .karakter-identity span,
    .karakter-identity small,
    .karakter-panel[data-side-panel="karakter"] .karakter-lbl,
    .karakter-panel[data-side-panel="karakter"] .karakter-stat-name {
        font-size: 12px;
    }
    .karakter-panel[data-side-panel="karakter"] .karakter-val-pill {
        height: 21px;
        font-size: 13px;
    }
    .karakter-panel[data-side-panel="karakter"] .karakter-field,
    .karakter-panel[data-side-panel="karakter"] .karakter-stat-row {
        min-height: 28px;
        grid-template-columns: 20px minmax(0, 1fr) 54px;
        gap: 5px;
    }
    .karakter-panel[data-side-panel="karakter"] .karakter-stat-row {
        grid-template-columns: 20px 28px 1fr 24px;
    }
    .karakter-panel[data-side-panel="karakter"] .karakter-plus-btn {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
    .karakter-icon-wrap,
    .karakter-stat-icon {
        width: 19px;
        height: 19px;
    }
    .karakter-icon-wrap img,
    .karakter-stat-icon img {
        max-width: 17px;
        max-height: 17px;
    }
}

/* Karakter paneli: Envanter UI ile birebir uyumlu renkler ve çerçeve */
.karakter-panel[data-side-panel="karakter"] {
    width: 275px;
    height: min(366px, calc(100vh - 140px));
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0, 0, 0, 0.85);
    color: #e0dcd7;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

.karakter-panel[data-side-panel="karakter"]::before,
.karakter-panel[data-side-panel="karakter"]::after {
    display: none !important;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar,
.karakter-panel[data-side-panel="karakter"] .karakter-titlebar {
    height: 26px;
    padding: 0 30px 0 10px;
    border: 0;
    border-bottom: 1px solid #4e3d37;
    background: linear-gradient(90deg, rgba(58, 22, 19, 0.98) 0%, rgba(26, 13, 12, 0.96) 100%);
    box-shadow: none;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar strong::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ba6256;
    box-shadow: 0 0 6px #ba6256;
    flex-shrink: 0;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar strong,
.karakter-panel[data-side-panel="karakter"] .karakter-title-plate strong {
    color: #f0ddd0;
    font: 700 13px/1 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px #000;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar > button {
    width: 26px;
    height: 100%;
    min-height: 25px;
    align-self: stretch;
    border: 0;
    border-left: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(40, 20, 18, 0.75);
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar > button::before {
    content: '×';
    font-size: 14px;
    color: #ffffff;
    line-height: 1;
}

.karakter-panel[data-side-panel="karakter"] .settings-titlebar > button:hover {
    background: #7a2b22;
    color: #fff;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar {
    display: flex;
    gap: 3px;
    padding: 4px 6px;
    border-bottom: 1px solid #4e3d37;
    background: rgba(10, 8, 8, 0.96);
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn {
    flex: 1;
    height: 32px;
    line-height: 30px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    border: 1px solid #3e3936;
    border-radius: 0;
    background: rgba(10, 9, 8, 0.92);
    color: #a89f91;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: inset 0 0 0 1px #1d1a19;
    text-shadow: 0 1px 2px #000;
    padding: 0 4px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn .ko-tab-icon,
.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn img {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    object-fit: contain;
    pointer-events: none;
    flex-shrink: 0;
    filter: none;
    opacity: 0.85;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn span {
    flex: 1;
    text-align: center;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn:hover {
    border-color: #744638;
    background: rgba(28, 20, 18, 0.95);
    color: #f0ddd0;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn.is-active {
    color: #f0ddd0 !important;
    border: 1px solid #a25c4e !important;
    background: linear-gradient(180deg, rgba(68, 28, 24, 0.96) 0%, rgba(28, 13, 12, 0.96) 100%) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 0 8px rgba(162, 92, 78, 0.25) !important;
    text-shadow: 0 1px 2px #000 !important;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn.is-active .ko-tab-icon,
.karakter-panel[data-side-panel="karakter"] .karakter-tabs-bar .ko-tab-btn.is-active img {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(186, 98, 86, 0.45));
}

.karakter-panel[data-side-panel="karakter"] .karakter-body {
    flex: 1;
    min-height: 0;
    padding: 6px;
    overflow: hidden;
    background: rgba(10, 8, 8, 0.96);
}

.karakter-panel[data-side-panel="karakter"] .karakter-tab-content {
    gap: 5px;
    height: 100%;
    padding: 0;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tab-content[data-char-tab-page="karakter"] {
    overflow-y: auto;
    padding-bottom: 2px;
    box-sizing: border-box;
}

.karakter-panel[data-side-panel="karakter"] .karakter-tab-content[data-char-tab-page="bonuslar"] {
    overflow-y: auto;
}

.karakter-panel[data-side-panel="karakter"] .karakter-box {
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918, 0 2px 6px rgba(0, 0, 0, 0.5);
    padding: 5px 6px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-top-box {
    gap: 4px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-exp-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-exp-row .karakter-lbl {
    font-size: 10px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-field {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 0;
    height: 19px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.karakter-panel[data-side-panel="karakter"] .karakter-lbl {
    flex: 1;
    min-width: 0;
    color: #e0dcd7;
    font: 700 10px/1 Tahoma, Arial, sans-serif;
    white-space: nowrap;
    text-shadow: 1px 1px 1px #000;
}

.karakter-panel[data-side-panel="karakter"] .karakter-val-pill {
    height: 19px;
    min-width: 42px;
    padding: 0 5px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    color: #fff;
    font: 800 10.5px/1 Tahoma, Arial, sans-serif;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
}

.karakter-panel[data-side-panel="karakter"] .karakter-val-pill.is-exp {
    flex: 1;
    height: 18px;
    padding: 0;
    border-color: #4e3d37;
    box-shadow: inset 0 0 4px #000;
}

.karakter-panel[data-side-panel="karakter"] .karakter-exp-fill {
    background: linear-gradient(180deg, #ff7770 0%, #c51517 55%, #65080a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 205, 190, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.65);
}

.karakter-panel[data-side-panel="karakter"] .karakter-val-pill.is-exp b {
    color: #fff;
    font: 800 10.5px/1 Tahoma, Arial, sans-serif;
}

.karakter-panel[data-side-panel="karakter"] .karakter-mid-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px 6px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-col-left,
.karakter-panel[data-side-panel="karakter"] .karakter-col-right {
    gap: 4px;
}

.karakter-icon-wrap,
.karakter-stat-icon {
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.karakter-icon-wrap img,
.karakter-stat-icon img {
    max-width: 13px;
    max-height: 13px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px #000);
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-row {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 0;
    height: 19px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-name {
    flex: 0 0 26px;
    font: 800 10.5px/1 Tahoma, Arial, sans-serif;
    text-shadow: 1px 1px 1px #000;
}

.karakter-stat-row.is-inactive-stat .karakter-stat-icon {
    opacity: 0.6;
    filter: grayscale(40%);
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-row .karakter-val-pill {
    flex: 1;
    min-width: 32px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-plus-btn {
    width: 19px;
    height: 19px;
    border: 1px solid #3a332a;
    border-radius: 2px;
    background: #151311;
    color: #7d7469;
    font: 900 12px/1 Tahoma, Arial, sans-serif;
    box-shadow: none;
}

.karakter-panel[data-side-panel="karakter"] .karakter-plus-btn:hover:not(.is-disabled) {
    border-color: #ffd978;
    color: #ffffff;
    background: linear-gradient(180deg, #4d3a22 0%, #241a0e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 217, 120, 0.4), 0 0 5px rgba(255, 217, 120, 0.5);
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-points-card {
    min-height: 44px;
    margin-top: 1px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-points-title {
    color: #e0dcd7;
    font: 700 9.5px/1 Tahoma, Arial, sans-serif;
}

.karakter-panel[data-side-panel="karakter"] .karakter-stat-points-val {
    color: #ffd978;
    font: 900 14px/1 Tahoma, Arial, sans-serif;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-box {
    gap: 4px;
    padding: 5px 6px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-header {
    display: block;
    padding-bottom: 2px;
    border-bottom: 1px solid #4e3d37;
    color: #f0ddd0;
    font: 800 10px/1 Tahoma, Arial, sans-serif;
    letter-spacing: 0.5px;
    text-align: center;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-header::before,
.karakter-panel[data-side-panel="karakter"] .karakter-resist-header::after {
    display: none;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 0;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-col {
    gap: 3px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-resist-col .karakter-field {
    min-height: 0;
    height: 19px;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-box {
    flex: 0 0 auto;
    min-height: 100%;
    height: max-content;
    gap: 0;
    padding: 4px 6px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
    overflow: hidden;
    box-sizing: border-box;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-row {
    min-height: 0;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid #4e3d37;
    border-radius: 0;
    background: transparent;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-row:last-child {
    border-bottom: 0;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-bullet {
    background: #ba6256;
    box-shadow: 0 0 4px rgba(186, 98, 86, 0.45);
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-lbl {
    color: #e0dcd7;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-val {
    color: #f0ddd0;
}

.karakter-panel[data-side-panel="karakter"] .karakter-bonus-lbl,
.karakter-panel[data-side-panel="karakter"] .karakter-bonus-val,
.karakter-panel[data-side-panel="karakter"] .karakter-bonus-empty {
    font: 700 11px/1.25 Tahoma, Arial, sans-serif;
}

/* Inventory performance optimization */
.inventory-panel {
    contain: layout style;
}

/* The EXP meter shares the level and nation value columns. */
.karakter-panel[data-side-panel="karakter"] .karakter-top-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 56px;
    gap: 4px 6px;
    align-items: center;
}
.karakter-panel[data-side-panel="karakter"] .karakter-top-row,
.karakter-panel[data-side-panel="karakter"] .karakter-top-row .karakter-field,
.karakter-panel[data-side-panel="karakter"] .karakter-exp-row { display: contents; }
.karakter-panel[data-side-panel="karakter"] .karakter-top-box .karakter-val-pill { min-width: 0; width: 100%; box-sizing: border-box; }
.karakter-panel[data-side-panel="karakter"] .karakter-exp-row .is-exp { grid-column: 2 / -1; }
.ko-mob-titlebar button[data-mob-preview-close] { width: 24px; height: 24px; border: 0; border-radius: 0; background: #3a1c15; }
.ko-mob-preview-viewport { width: 100%; border-radius: 0; background: radial-gradient(ellipse at center, #211e16, #0b0907 75%); }
.ko-mob-titlebar strong { color: #dacdb0; letter-spacing: 0; }
.quest-tracker .quest-track-pic { display: flex; align-items: center; justify-content: center; }
.quest-tracker .quest-track-pic img { margin: 0; max-width: 100%; max-height: 100%; }

/* Compact buff grip: a metal strip without dropdown arrows. */
.buff-drag-handle { width: 6px; min-width: 6px; height: 30px; flex: 0 0 6px; padding: 0; border: 1px solid #a58c52; border-radius: 0; background: repeating-linear-gradient(0deg, #30291b 0 2px, #71603a 2px 3px); box-shadow: inset 1px 0 #c6b67b; }
.buff-drag-handle:active { cursor: grabbing; }
.map-boss-tracker { position:fixed; left:16px; top:340px; width:280px; z-index:35; color:#dfd4b9; font:11px Tahoma,sans-serif; background:#0007; border:0; backdrop-filter:blur(7px); padding:8px; }
.map-boss-tracker[hidden] { display:none; }
.map-boss-tracker header,.map-boss-modal header { display:flex; align-items:center; gap:6px; }
.map-boss-tracker time { margin-left:auto; color:#e4be62; }
.map-boss-tracker button,.map-boss-modal button { border:1px solid #514531; background:#211b13; color:#dfc478; cursor:pointer; }
.map-boss-tracker header button { width:14px; height:14px; min-width:14px; padding:0; display:grid; place-items:center; border:1px solid #fff; border-radius:50%; background:transparent; color:#fff; font:bold 10px Tahoma,sans-serif; line-height:1; }
.map-boss-ranking { width:100%; margin-top:4px; border-collapse:collapse; table-layout:auto; background:#0006; font-size:10px; }
.map-boss-ranking th,.map-boss-ranking td { padding:4px 5px; text-align:left; white-space:nowrap; }
.map-boss-ranking th { color:#bca66e; font-weight:normal; border-bottom:1px solid #ffffff1c; }
.map-boss-ranking th:first-child,.map-boss-ranking td:first-child { width:18px; text-align:center; }
.map-boss-ranking th:last-child,.map-boss-ranking td:last-child { text-align:right; color:#e0bd66; }
.map-boss-ranking td:nth-child(2) { overflow:hidden; text-overflow:ellipsis; max-width:130px; }
.map-boss-rank-player { display:inline-flex; align-items:center; gap:4px; min-width:0; }
.map-boss-rank-player img { width:12px; height:12px; object-fit:contain; flex:0 0 12px; }
.map-boss-ranking tbody tr+tr { border-top:1px solid #ffffff0c; }
.boss-hp { position:relative; background:#100e0a; height:15px; margin:6px 0 2px; }
.boss-hp i { display:block; height:100%; background:linear-gradient(#698645,#374921); }
.boss-hp span { position:absolute; inset:0; text-align:center; font-size:10px; }
.map-boss-modal { width:min(460px,90vw); max-height:80vh; overflow:visible; padding:0 12px 12px; border:1px solid #806b43; background:#100d09; color:#dfd4b9; font:12px Tahoma,sans-serif; box-shadow:0 12px 40px #000c; }
.map-boss-modal::backdrop { background:#0008; }
.map-boss-modal header { min-height:38px; margin:0 -12px 10px; padding:0 12px; border-bottom:1px solid #514531; background:linear-gradient(180deg,#292116,#17130e); }
.map-boss-modal header b { color:#e5d7b9; font-size:12px; }
.map-boss-modal header button { margin-left:auto; width:20px; height:20px; padding:0; border:1px solid #8b7546; background:#211b13; color:#f0d58e; font-size:15px; line-height:16px; }
.map-boss-modal > p { margin:8px 0; }
.boss-drops { display:grid; grid-template-columns:1fr 1fr; gap:8px; max-height:calc(80vh - 150px); overflow-y:auto; padding-right:3px; }
.boss-drops article { display:flex; gap:8px; align-items:center; min-height:46px; padding:5px 7px; background:#211b13; cursor:help; }
.boss-drops article:hover { background:#302719; }
.boss-drop-icon { position:relative; display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; overflow:hidden; border:1px solid #514531; border-radius:3px; background:radial-gradient(circle at 50% 38%,#393126,#16130f 75%); }
.boss-drop-icon img { width:32px; height:32px; object-fit:contain; }
.boss-drops small { display:block; color:#bb9b57; }
.ko-guard-modal .mail-btn.is-green { background:linear-gradient(#675126,#302514); color:#ffdf95; border:1px solid #89703f; }
.quest-tracker .quest-track-body > .quest-prog-bar { display: block; flex: none; height: 13px; min-height: 13px; width: 100%; }

/* Only the market participates in a market opening, including observer updates. */
.game-modal-stage[data-active-panel="merchant"] .side-panel:not([data-side-panel="merchant"]) { display: none !important; }
.game-modal-stage[data-active-panel="merchant"] .game-modal-container { transition: none; animation: none; }
.ko-loading.is-visible { transition: none; }

/* Power store: framed catalog, category rail, 3 x 5 product pages. */
.store-panel { width: min(970px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 2px solid #c2b57c; outline: 1px solid #423927; border-radius: 0; background: #090e0b; box-shadow: 0 18px 55px #000c, inset 0 0 0 2px #272b20; font-family: Tahoma, Arial, sans-serif; }
.store-panel .store-titlebar { height: 38px; justify-content: center; position: relative; background: linear-gradient(90deg, #102721, #080b07 50%, #17261c); border-bottom: 3px double #c2b57c; }
.store-panel .store-titlebar strong { color: #eeaf51; font: bold 23px/1 Georgia, serif; text-shadow: 0 2px #000, 0 0 7px #a32a14; letter-spacing: 1px; }
.store-panel .store-titlebar button { position: absolute; right: 0; top: 0; }
.store-shell { display: grid; grid-template-columns: 136px minmax(0, 1fr); max-height: calc(100vh - 68px); overflow: auto; }
.store-sidebar { display: flex; flex-direction: column; gap: 7px; padding: 18px 7px 8px; border-right: 3px double #c2b57c; background: linear-gradient(145deg, #1b2a20, #080b08 35%); }
.store-panel button:not([data-close-panel]) { border: 1px solid #e3d9a9; border-radius: 0; color: #302c18; background: linear-gradient(#fffae0, #d5c894 45%, #a99a64 50%, #e5d9ad); box-shadow: inset 0 0 0 2px #70663d, 0 1px 2px #000; font: bold 10px/1.2 Tahoma, sans-serif; cursor: pointer; }
.store-panel button:not([data-close-panel]):hover { filter: brightness(1.15); }
.store-panel button:disabled { opacity: .45; cursor: default; }
.store-sidebar button { min-height: 29px; padding: 5px 3px; }
.store-panel .store-sidebar button.is-active { background: linear-gradient(#d7f4e8, #72a995, #bde2d2); box-shadow: inset 0 0 0 2px #456e60; }
.store-wallet { margin-top: auto; padding: 12px 0 4px; display: flex; align-items: center; gap: 5px; border-top: 1px solid #928654; color: #ffe482; font-size: 10px; }
.store-wallet img { width: 23px; height: 23px; object-fit: contain; }
.store-wallet b { display: block; color: #ffc34d; font-size: 12px; }
.store-catalog { padding: 6px; min-width: 0; }
.store-search { display: flex; gap: 6px; align-items: center; padding-bottom: 6px; border-bottom: 3px double #928654; margin-bottom: 7px; }
.store-search input { width: min(255px, 50%); min-width: 80px; height: 25px; padding: 3px 8px; background: #050a06; border: 1px solid #c6bb89; color: #eee5bc; font: 11px Tahoma; }
.store-search button { height: 25px; min-width: 64px; }
.store-search [data-store-result-count] { margin-left: auto; font-size: 10px; color: #b8b393; }
.store-panel .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; min-height: 490px; align-content: start; }
.store-product { min-width: 0; height: 92px; box-sizing: border-box; border: 1px solid #dbd09a; box-shadow: inset 0 0 0 2px #252a1b; background: linear-gradient(135deg, #182019bb, #050805); padding: 5px 6px; }
.store-product h3 { margin: 0 0 8px; height: 17px; line-height: 15px; text-align: center; color: #ebe09b; border: 1px solid #444b36; border-radius: 8px 0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #040705; }
.store-product-body { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.store-product-icon { width: 43px; height: 43px; box-sizing: border-box; border: 2px solid #cfc8a4; outline: 1px solid #4f6044; padding: 2px; background: #111710; }
.store-product-icon img { width: 100%; height: 100%; object-fit: contain; }
.store-product-info { display: flex; flex-direction: column; gap: 5px; font-size: 9px; min-width: 0; }
.store-product-info strong { color: #ffcf67; font-size: 9px; }
.store-product-info span { color: #d9d282; }
.store-product-info del { color: #8d907d; }
.store-product-body button { padding: 5px 6px; white-space: nowrap; }
.store-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 9px 0 2px; color: #eee9d4; font-size: 11px; }
.store-pagination button { width: 34px; height: 22px; }
.store-empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: #c9c3a4; }
@media (max-width: 780px) { .store-panel .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 300px; } .store-shell { grid-template-columns: 115px minmax(0,1fr); } }
@media (max-width: 540px) { .store-panel .store-grid { grid-template-columns: 1fr; } .store-shell { grid-template-columns: 95px minmax(0,1fr); } .store-search [data-store-result-count] { display: none; } }

/* Requested compact controls and transparent quest tracker. */
.ko-hud-buff-slots { --buff-slot-size: 34px; gap: 0; align-items: flex-start; }
.ko-hud-buff-slots > .ko-buff-card { width: var(--buff-slot-size); height: var(--buff-slot-size); flex: 0 0 var(--buff-slot-size); box-sizing: border-box; margin: 0; }
.buff-drag-handle { flex: 0 0 18px; width: 18px; min-width: 18px; height: var(--buff-slot-size, 34px); min-height: var(--buff-slot-size, 34px); margin: 0; padding: 0; border: 1px solid rgba(217,191,133,.22); border-radius: 2px; background: rgba(0,0,0,.42); box-shadow: none; box-sizing: border-box; backdrop-filter: blur(6px); }
.quest-tracker .quest-track-card { background: transparent; border: 0; box-shadow: none; }
.quest-tracker .quest-track-body > .quest-prog-bar { height: 18px; min-height: 18px; }
.quest-tracker .quest-prog-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 10px/1 Tahoma, sans-serif; color: #fff; text-shadow: 1px 1px 2px #000; z-index: 1; }
.ko-loading-bar { height: 30px; }
.ko-loading-message { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 0 12px; text-align: center; font: 700 13px/1 Tahoma, sans-serif; color: #eee5dc; text-shadow: 0 1px 3px #000, 0 0 5px #000; }
.ko-loading-percent::before, .ko-loading-percent::after { display: none; }
/* Keep the catalog layout, restore the game's dark brown panel palette. */
.store-panel { border: 1px solid #3a322a; outline: none; border-radius: 2px; background: #0e0c0a; box-shadow: 0 12px 32px #0009; }
.store-panel .store-titlebar { height: 25px; justify-content: flex-start; background: #191610; border-bottom: 1px solid #33291e; }
.store-panel .store-titlebar strong { color: #dacdb0; font: 700 11px/1 Tahoma, sans-serif; letter-spacing: 0; text-shadow: 1px 1px #000; }
.store-sidebar { background: #100d0a; border-right: 1px solid #3a322a; }
.store-panel button:not([data-close-panel]) { border: 1px solid #4a3b29; border-radius: 2px; color: #e1cfac; background: linear-gradient(#292217, #100d09); box-shadow: inset 0 1px #ffffff0b; }
.store-panel .store-sidebar button.is-active { color: #ffd978; border-color: #8a6c35; background: linear-gradient(#54401b, #21190c); box-shadow: inset 0 0 5px #bd933633; }
.store-search { border-bottom: 1px solid #3a322a; }
.store-search input { background: #080706; border-color: #3a322a; color: #f0e6d2; }
.store-product { border: 1px solid #3a322a; border-radius: 3px; box-shadow: none; background: linear-gradient(#1b1611, #0e0c0a); }
.store-product h3 { border: 0; border-bottom: 1px solid #33291e; border-radius: 0; background: transparent; color: #e8d9b9; }
.store-product-icon { border: 1px solid #59472f; outline: none; background: #080706; border-radius: 2px; }
.store-product-info strong { display: flex; align-items: center; gap: 3px; color: #ffd978; }
.store-currency-icon { width: 16px; height: 16px; object-fit: contain; flex: 0 0 16px; }
.store-product-info span { color: #c6baa3; }
.store-wallet { border-color: #3a322a; color: #d9c6a3; }
.store-product-body button { background: linear-gradient(#2d4422,#14210d) !important; border-color: #455e32 !important; }
/* The listing area has the same geometry before and after the request. */
[data-market-rows] { height: min(300px, 42vh); overflow-y: auto; }
.market-panel { animation: none; transition: none; }

/* Map Boss AoE Blast Effect */
.boss-aoe-blast {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.08);
    opacity: 0.95;
    transition: transform 0.65s cubic-bezier(0.12, 0.8, 0.32, 1), opacity 0.65s ease-out;
    z-index: 8500;
    box-shadow: 0 0 35px currentColor, inset 0 0 25px currentColor;
    border: 4px solid currentColor;
    background: radial-gradient(circle, currentColor 0%, transparent 65%);
}
.boss-aoe-blast.is-expanded {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* ========================================================
   ORTAK UI TOKENS — paneller, başlıklar, butonlar ve metinler
   ======================================================== */
:root {
    --ko-ui-bg: #0e0c0a;
    --ko-ui-surface: #18140f;
    --ko-ui-surface-hover: #241d14;
    --ko-ui-title: #191610;
    --ko-ui-border: #2b251e;
    --ko-ui-border-strong: #51412d;
    --ko-ui-accent: #d6b866;
    --ko-ui-accent-bright: #ffd978;
    --ko-ui-text: #ddd3c0;
    --ko-ui-muted: #958a78;
    --ko-ui-danger: #8d3029;
    --ko-ui-radius: 2px;
    --ko-ui-font: Tahoma, 'Segoe UI', Arial, sans-serif;
}
.ko-window-panel { color:var(--ko-ui-text); border-color:var(--ko-ui-border); background:var(--ko-ui-bg); font-family:var(--ko-ui-font); }
.ko-window-panel:not(.rank-panel) .settings-titlebar { color:var(--ko-ui-text); background:var(--ko-ui-title); border-color:var(--ko-ui-border); }
.ko-window-panel:not(.rank-panel) .settings-titlebar strong { color:var(--ko-ui-text); }
.ko-window-panel button:not([data-close-panel]):not(.skill-item):not(.anvil-mode) { border-color:var(--ko-ui-border-strong); border-radius:var(--ko-ui-radius); }
.ko-window-panel:not(.rank-panel) [data-close-panel], .map-boss-modal header button { background:#3a1c17; border-color:#542921; color:#f2ddd2; }

/* Sol HUD artık sağ üst bilgi kutularıyla aynı dış çerçeve paletini kullanır. */
.ko-hud-frame-wrap { padding:4px; border:1px solid var(--ko-ui-border) !important; border-radius:3px; background:rgba(14,12,10,.94); box-shadow:0 4px 12px rgba(0,0,0,.7); }
.ko-hud-class-box,.ko-hud-bars-box { border-color:var(--ko-ui-border) !important; }

/* Görevler biraz daha yukarıda; ganimet akışı aynı kolonun altında kalır. */
.hud-feed { top:92px; }
.hud-feed .gain-cards { margin-top:14px; }

/* Sıralama: kaydırma çalışır ama çubuk görünmez; klan bağımsız sütundur. */
.rank-table { scrollbar-width:none; }
.rank-table::-webkit-scrollbar { width:0; height:0; display:none; }
.rank-head-clan,.rank-clan { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#b7aa91; }
.rank-row.is-head .rank-head-clan { color:var(--ko-ui-accent-bright); }
.rank-row.is-self .rank-clan { color:#f0d58e; }

/* Demirci seçim açıklamaları sade ve tek satırdır. */
.anvil-mode-text { min-width:0; }
.anvil-mode-text em { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Yetenek penceresi ortak koyu/bronz sistemle aynı renk kaynağını kullanır. */
.skill-body { background:var(--ko-ui-bg); }
.skill-top-strip,.skill-pages-wrap { background:#090806; border-color:var(--ko-ui-border); }
.skill-tabs-bar .ko-tab-btn,.skill-item { color:var(--ko-ui-text); background:linear-gradient(#1b1712,#0e0c09); border-color:var(--ko-ui-border); }
.skill-tabs-bar .ko-tab-btn:hover,.skill-item:hover { color:var(--ko-ui-accent-bright); border-color:var(--ko-ui-border-strong); background:var(--ko-ui-surface-hover); }
.skill-tabs-bar .ko-tab-btn.is-active,.skill-item.is-selected { color:var(--ko-ui-accent-bright); border-color:var(--ko-ui-accent) !important; background:linear-gradient(#3a2e1b,#181208) !important; box-shadow:inset 0 0 5px #d6b8662b !important; }
.skill-points-box strong { color:#e69bba; text-shadow:none; }
.skill-icon-frame { border-color:var(--ko-ui-border-strong); background:#080706; }
.skill-item-info b { color:var(--ko-ui-text); }
.skill-item-info em { color:var(--ko-ui-muted); }
.skill-book-container { border-color:var(--ko-ui-border-strong); background:linear-gradient(135deg,#211a11,#0d0a07); }

/* Boss detay kartı diğer oyun pencereleriyle aynı başlık ve içerik hiyerarşisine sahiptir. */
.map-boss-modal { width:min(500px,92vw); padding:0 12px 12px; border:1px solid var(--ko-ui-border-strong); border-radius:var(--ko-ui-radius); background:var(--ko-ui-bg); color:var(--ko-ui-text); }
.map-boss-modal header { min-height:32px; background:var(--ko-ui-title); border-bottom:1px solid var(--ko-ui-border); }
.boss-modal-mark { padding:2px 5px; border:1px solid #6d3a2f; background:#2b1511; color:#e38b72; font-size:8px; letter-spacing:.8px; }
.map-boss-modal header b { color:var(--ko-ui-text); font-size:11px; }
.boss-modal-summary { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:9px 0; }
.boss-modal-summary span { padding:7px 9px; border:1px solid var(--ko-ui-border); background:var(--ko-ui-surface); }
.boss-modal-summary small,.boss-modal-summary b { display:block; }
.boss-modal-summary small { margin-bottom:3px; color:var(--ko-ui-muted); font-size:8px; }
.boss-modal-summary b { color:#e5d7b9; font-size:10px; }
.boss-modal-section-title { display:flex; justify-content:space-between; align-items:end; margin:10px 0 5px; padding-bottom:5px; border-bottom:1px solid var(--ko-ui-border); }
.boss-modal-section-title span { color:var(--ko-ui-accent-bright); font-weight:700; }
.boss-modal-section-title small { color:var(--ko-ui-muted); font-size:8px; }
.boss-drops { gap:6px; scrollbar-width:none; }
.boss-drops::-webkit-scrollbar { display:none; }
.boss-drops article { min-height:44px; padding:5px 7px; border:1px solid var(--ko-ui-border); background:var(--ko-ui-surface); }
.boss-drops article:hover { border-color:var(--ko-ui-border-strong); background:var(--ko-ui-surface-hover); }
.boss-drops article > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ko-ui-text); }
.boss-drops small { color:var(--ko-ui-accent); }

/* Otomatik av ayarları sağ HUD'u büyütmez; HUD'un hemen solunda bağımsız açılır. */
.ko-genie-settings-modal {
    width:340px;
    max-height:calc(100vh - 16px);
    overflow:hidden;
    flex:0 0 340px;
    border:1px solid var(--ko-ui-border-strong);
    border-radius:var(--ko-ui-radius);
    background:rgba(9,8,6,.98);
    color:var(--ko-ui-text);
    box-shadow:0 10px 32px rgba(0,0,0,.82);
    font-family:var(--ko-ui-font);
}
.ko-genie-settings-modal[hidden] { display:none; }
.ko-genie-settings-head { display:flex; align-items:center; min-height:30px; padding:0 0 0 8px; border-bottom:1px solid var(--ko-ui-border); background:var(--ko-ui-title); }
.ko-genie-settings-head strong { color:#d8cfbe; font-size:11px; font-weight:800; }
.ko-genie-settings-head button { width:24px; height:100%; margin-left:auto; padding:0; border:0; border-left:1px solid var(--ko-ui-border); border-radius:0; background:#3a1a16; color:#fff; cursor:pointer; }
.ko-genie-settings-body { max-height:calc(100vh - 48px); overflow-y:auto; padding:8px; scrollbar-width:none; }
.ko-genie-settings-body::-webkit-scrollbar { display:none; }
.ko-genie-settings-group { margin-bottom:7px; padding:7px; border:1px solid var(--ko-ui-border); background:var(--ko-ui-surface); }
.ko-genie-settings-group > header { display:flex; align-items:center; min-height:18px; margin:-2px 0 6px; padding-bottom:5px; border-bottom:1px solid #30291f; }
.ko-genie-settings-group > header b { color:var(--ko-ui-accent-bright); font-size:10px; }
.ko-genie-settings-group > header small,.ko-genie-settings-group > header strong { margin-left:auto; color:var(--ko-ui-muted); font-size:9px; font-weight:700; }
.ko-genie-settings-group > header strong { color:var(--ko-ui-accent-bright); }
.ko-genie-settings-group .ko-genie-check { min-height:23px; padding:1px 2px; color:var(--ko-ui-text); font-size:10px; }
.ko-genie-settings-group .ko-genie-range { display:grid; grid-template-columns:1fr 145px; gap:8px; align-items:center; min-height:24px; padding:0 2px; border:0; color:var(--ko-ui-muted); font-size:9px; }
.ko-genie-settings-group .ko-genie-range input { width:145px; accent-color:#c79e3a; }
.ko-genie-selected-slots { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; margin-bottom:6px; }
.ko-genie-selected-slot { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; height:57px; border:1px dashed #3b3328; background:#0c0a08; color:#645c50; }
.ko-genie-selected-slot.is-filled { border-style:solid; border-color:#6b5733; background:linear-gradient(#211a10,#100d09); }
.ko-genie-selected-slot > em { position:absolute; top:2px; left:3px; color:#d8b95f; font:700 8px Tahoma,sans-serif; }
.ko-genie-selected-slot img { width:28px; height:28px; margin-bottom:2px; border:1px solid #4d402c; object-fit:cover; }
.ko-genie-selected-slot b,.ko-genie-selected-slot i { display:block; max-width:100%; overflow:hidden; padding:0 3px; text-overflow:ellipsis; white-space:nowrap; font-size:8px; font-style:normal; }
.ko-genie-selected-slot b { color:#d9cfbb; }
.ko-genie-skill-pool { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
.ko-genie-skill-choice { position:relative; display:grid; grid-template-columns:27px minmax(0,1fr); align-items:center; gap:5px; min-width:0; min-height:32px; padding:2px 5px; border:1px solid #302a21; border-radius:2px; background:#100e0b; color:#bdb3a0; text-align:left; cursor:pointer; }
.ko-genie-skill-choice:hover { border-color:var(--ko-ui-border-strong); color:#eee1c5; background:var(--ko-ui-surface-hover); }
.ko-genie-skill-choice.is-selected { border-color:#a98538; color:#ffe39a; background:linear-gradient(#342812,#171108); box-shadow:inset 0 0 5px #d6b86625; }
.ko-genie-skill-choice img { width:25px; height:25px; border:1px solid #4a3d29; object-fit:cover; }
.ko-genie-skill-choice span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; font-weight:700; }
.ko-genie-skill-choice em { position:absolute; top:2px; right:3px; min-width:12px; height:12px; border-radius:50%; background:#c6972f; color:#110d06; font:800 8px/12px Tahoma,sans-serif; text-align:center; }
.ko-genie-no-skill { grid-column:1/-1; padding:8px; color:var(--ko-ui-muted); font-size:9px; text-align:center; }
.ko-genie-settings-note { margin:0; padding:2px 3px 0; color:#776f62; font-size:8px; line-height:1.4; }
@media (max-width:760px) {
    .ko-genie-settings-modal { position:fixed; top:8px; left:8px; width:min(340px,calc(100vw - 174px)); min-width:250px; }
}

/* Genie içeriği sade tutulur: yalnız pencere çerçevesi ve bölüm ayraçları kullanılır. */
.ko-genie-settings-body { padding:7px 10px 9px; }
.ko-genie-settings-group { margin:0; padding:8px 0; border:0; border-top:1px solid #2d281f; background:transparent; }
.ko-genie-settings-group:first-child { border-top:0; }
.ko-genie-settings-group > header { min-height:16px; margin:0 0 6px; padding:0; border:0; }
.ko-genie-selected-slots { gap:5px; }
.ko-genie-selected-slot { border:0; background:#0c0b09; }
.ko-genie-selected-slot:not(.is-filled) { outline:1px dashed #332d24; outline-offset:-1px; }
.ko-genie-selected-slot.is-filled { border:0; background:#15120d; }
.ko-genie-selected-slot img { border:0; }
.ko-genie-skill-pool { gap:2px 8px; }
.ko-genie-skill-choice,.ko-genie-skill-choice:hover,.ko-genie-skill-choice.is-selected { min-height:31px; border:0; border-radius:0; box-shadow:none; }
.ko-genie-skill-choice { border-bottom:1px solid #242019; background:transparent; }
.ko-genie-skill-choice:hover { background:#18140e; }
.ko-genie-skill-choice.is-selected { background:#211a0d; }
.ko-genie-skill-choice img { border:0; }

/* Ölüm bildirimi: envanter ve ayarlar pencereleriyle aynı bakır/bordo arayüz. */
.ko-death-overlay { position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(4,3,3,.58); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
.ko-death-overlay[hidden] { display:none; }
.ko-death-prompt { width:min(380px,calc(100vw - 40px)); overflow:hidden; border:1px solid #4e3d37; border-radius:0; background:rgba(10,8,8,.97); color:#e0dcd7; box-shadow:inset 0 0 0 2px #261918,0 18px 55px rgba(0,0,0,.82); font-family:Tahoma,'Segoe UI',Arial,sans-serif; text-align:center; }
.ko-death-prompt > header { display:flex; align-items:center; justify-content:flex-start; min-height:32px; padding:0 11px; border-bottom:1px solid #4e3d37; background:linear-gradient(90deg,rgba(58,22,19,.98),rgba(26,13,12,.96)); }
.ko-death-prompt > header span { display:flex; align-items:center; gap:7px; color:#f0ddd0; font:700 13px Georgia,'Times New Roman',serif; letter-spacing:.45px; text-shadow:0 1px 3px #000; }
.ko-death-prompt > header span::before { content:''; width:6px; height:6px; border-radius:50%; background:#ba6256; box-shadow:0 0 6px #ba6256; }
.ko-death-prompt-body { padding:18px 24px 14px; }
.ko-death-mark { display:block; margin-bottom:7px; color:#ba6256; font:700 29px/1 Georgia,serif; text-shadow:0 0 12px rgba(186,98,86,.48); }
.ko-death-prompt p { margin:0 0 8px; color:#e0dcd7; font-size:11px; line-height:1.5; }
.ko-death-prompt small { color:#9f9188; font-size:9px; }
.ko-death-prompt > button { min-width:132px; height:28px; margin:0 0 17px; padding:0 15px; border:1px solid #6d4a3e; border-radius:0; background:linear-gradient(#51251f,#261311); color:#f0ddd0; font:800 10px Tahoma,'Segoe UI',Arial,sans-serif; box-shadow:inset 0 0 0 1px rgba(202,126,109,.12); cursor:pointer; }
.ko-death-prompt > button:hover:not(:disabled) { border-color:#a96859; background:linear-gradient(#693128,#311713); color:#fff2e8; }
.ko-death-prompt > button:disabled { border-color:#382b27; background:#15100f; color:#695d58; box-shadow:none; cursor:default; }

/* Sade Genie düzeni: tek ayar listesi ve yalnız 4+4 bırakma slotu. */
.ko-genie-settings-modal { width:330px; flex-basis:330px; }
.ko-genie-settings-group.is-options { padding:7px 0 9px; }
.ko-genie-settings-group.is-options > header b,.ko-genie-slot-row > b { color:#d8cfbe; font-size:10px; font-weight:800; }
.ko-genie-option-row { display:grid; grid-template-columns:18px 38px minmax(0,1fr) 30px 15px; align-items:center; gap:6px; min-height:27px; padding:0 3px; color:#d8cfbe; font-size:9px; font-weight:700; }
.ko-genie-option-row img { width:14px; height:14px; object-fit:contain; }
.ko-genie-option-row span { color:#d8cfbe; }
.ko-genie-option-row strong { color:#d8cfbe; font-size:9px; text-align:right; }
.ko-genie-option-row > i { width:14px; height:14px; }
.ko-genie-option-row input[type="checkbox"] { margin:0; accent-color:#c99b32; }
.ko-genie-option-row input[type="range"] { width:100%; min-width:0; accent-color:#c99b32; }
.ko-genie-slot-row { display:grid; grid-template-columns:54px minmax(0,1fr); align-items:center; gap:7px; padding:9px 0; border-top:1px solid #2d281f; }
.ko-genie-slot-row .ko-genie-selected-slots { display:grid; grid-template-columns:repeat(5,42px); gap:4px; justify-content:start; margin:0; }
.ko-genie-skill-slot { position:relative; display:flex; align-items:center; justify-content:center; width:42px; height:42px; padding:0; overflow:hidden; border:1px solid rgba(217,191,133,.22); border-radius:2px; background:rgba(0,0,0,.42); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); box-shadow:none; cursor:default; }
.ko-genie-skill-slot:hover { border-color:rgba(255,217,120,.6); box-shadow:0 0 6px rgba(255,217,120,.25); }
.ko-genie-skill-slot.is-drop-target { border-color:#7be5ff; box-shadow:0 0 10px rgba(123,229,255,.85),inset 0 0 8px rgba(123,229,255,.5); }
.ko-genie-skill-slot .ko-sb-key { top:1px; left:2px; }
.ko-genie-skill-slot .ko-sb-icon { width:100%; height:100%; object-fit:cover; border-radius:2px; }

/* ========================================================
   EKRAN UYUMU: skill bar mevcut alt HUD boşluğunda kalır.
   Fiziksel ekran ölçüsü tarayıcıdan güvenilir okunamadığı için çözünürlük ve kullanılabilir yükseklik esas alınır.
   ======================================================== */
.ko-skill-bar.is-v3 {
    --ko-skillbar-scale: 1;
    left: calc(50% + 97px);
    transform: translateX(-50%) scale(var(--ko-skillbar-scale));
    transform-origin: center bottom;
}

/* 27–60 inç sınıfındaki yüksek çözünürlüklü ekranlarda okunabilirliği hafif artır. */
@media (min-width: 2560px) and (min-height: 1200px) {
    .ko-skill-bar.is-v3 { --ko-skillbar-scale: 1.08; }
}
@media (min-width: 3200px) and (min-height: 1600px) {
    .ko-skill-bar.is-v3 { --ko-skillbar-scale: 1.16; }
}

/* 21–24 inç ve standart masaüstü çözünürlükleri. */
@media (max-width: 1599px) {
    .ko-skill-bar.is-v3 { --ko-skillbar-scale: .94; }
}

/* 1366/1440 sınıfı laptop ekranları: alt sohbet ve log alanına taşmaz. */
@media (max-width: 1366px), (max-height: 800px) {
    .ko-skill-bar.is-v3 { --ko-skillbar-scale: .84; }
}

/* Dar pencere / dikey oran: mevcut slot düzeni korunur, yalnız tamamı orantılı küçülür. */
@media (max-width: 1199px) {
    .ko-skill-bar.is-v3 { --ko-skillbar-scale: .78; }
}
@media (max-width: 1023px) {
    .ko-skill-bar.is-v3 {
        --ko-skillbar-scale: .70;
        left: 50%;
    }
}
@media (max-width: 820px) {
    .ko-skill-bar.is-v3 { --ko-skillbar-scale: .62; }
}

/* ========================================================
   ENVANTER RENK REVİZYONU: yeni bakır/bordo paleti, keskin 90° köşeler.
   ======================================================== */
.inventory-panel {
    border-radius: 0 !important;
    border: 1px solid #4e3d37 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0, 0, 0, 0.85) !important;
    color: #e0dcd7;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    user-select: none;
}

.inventory-panel > .settings-titlebar {
    height: 26px;
    padding: 0 30px 0 10px;
    background: linear-gradient(90deg, rgba(58, 22, 19, 0.98) 0%, rgba(26, 13, 12, 0.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
}

.inventory-panel > .settings-titlebar strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 700;
    color: #f0ddd0 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px #000;
    display: flex;
    align-items: center;
    gap: 7px;
}

.inventory-panel > .settings-titlebar strong::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ba6256;
    box-shadow: 0 0 6px #ba6256;
    flex-shrink: 0;
    display: inline-block;
}

.inventory-panel .inventory-body {
    background: rgba(10, 8, 8, 0.96) !important;
}

.inventory-panel .inventory-wear,
.inventory-panel .inventory-bag,
.inventory-panel .inventory-depo {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918, 0 3px 10px rgba(0, 0, 0, 0.65) !important;
}

.inventory-panel .inventory-character-card {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(68, 30, 26, 0.35) 0%, rgba(18, 14, 13, 0.95) 70%),
        #0c0908 !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95), inset 0 0 0 1px #261918 !important;
}

.inventory-panel .inventory-class {
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px #000;
}

.inventory-panel .inventory-slot {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #3d2f2a; /* tier JS inline override eder — !important koyma */
    border-radius: 0 !important;
    background: rgba(9, 7, 6, 0.95); /* tier JS inline bu property'i override eder — !important koyma */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.95); /* aynı sebep */
    box-sizing: border-box;
}

/* .inventory-panel .inventory-slot.has-item — tier renkleri JS'in paintTier() tarafından
   inline style ile set edilir; burada !important kural koyarsak tier renkleri görünmez. */

.inventory-panel .inventory-slot:hover {
    border-color: #ba6256 !important;
    box-shadow: inset 0 0 0 1px rgba(186, 98, 86, 0.3), 0 0 8px rgba(186, 98, 86, 0.35) !important;
}

/* .inventory-panel .inventory-slot.has-item:hover — border-color tier tarafından belirlenir,
   sadece parlama efekti eklenir. */
.inventory-panel .inventory-slot.has-item:hover {
    box-shadow: inset 0 0 0 1px rgba(210, 154, 131, 0.35), 0 0 8px rgba(186, 98, 86, 0.4) !important;
}

.inventory-panel .inventory-slot.is-locked,
.inventory-panel .inv2-lock {
    border-color: #2e2320 !important;
    background: #080605 !important;
    opacity: 0.65;
}

.inventory-panel .inv2-card {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
    color: #f0ddd0 !important;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif !important;
}

.inventory-panel .inv2-footer .inventory-noah,
.inventory-panel .inv2-footer .inventory-noah.is-ko,
.inventory-panel .inv2-footer .inventory-capacity {
    border-right: 1px solid #4e3d37 !important;
}

.inventory-panel .inventory-noah b {
    color: #f0ddd0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}

.inventory-panel .inventory-noah.is-ko b {
    color: #dfb3ff !important;
    font-weight: 700 !important;
}

.inventory-panel .inventory-capacity b {
    color: #f0ddd0 !important;
    font-weight: 700 !important;
}

.inventory-panel .inv2-depo {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
    transition: all 0.15s ease;
}

.inventory-panel .inv2-depo:hover,
.inventory-panel .inv2-depo.is-active {
    border-color: #ba6256 !important;
    background: rgba(36, 22, 20, 0.95) !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 8px rgba(186, 98, 86, 0.3) !important;
    filter: none !important;
}

.inventory-panel .inv2-footer .inv2-trash {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
    transition: all 0.15s ease;
}

.inventory-panel .inv2-footer .inv2-trash:hover,
.inventory-panel .inv2-footer .inv2-trash.is-trash-hover {
    border-color: #ba483d !important;
    background: rgba(45, 18, 16, 0.95) !important;
    box-shadow: inset 0 0 0 1px #4a1d18, 0 0 8px rgba(186, 72, 61, 0.4) !important;
    filter: none !important;
}

.inventory-panel .inventory-tool-btn {
    opacity: 0.85;
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.inventory-panel .inventory-tool-btn:hover {
    opacity: 1;
    filter: brightness(1.2) drop-shadow(0 0 4px rgba(186, 98, 86, 0.4));
}

.inventory-panel .inventory-depo-head {
    color: #f0ddd0 !important;
}

.inventory-panel .inventory-depo-page-btn {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    color: #f0ddd0 !important;
}

.inventory-panel .inventory-depo-page-btn:hover,
.inventory-panel .inventory-depo-page-btn.is-active {
    border-color: #ba6256 !important;
    background: rgba(36, 22, 20, 0.95) !important;
    color: #fff !important;
}

/* Sosyal HUD: dış panel çerçevesiz; ikonlar 3 sütunda kendi marka kutularıyla. */
.ko-hud-community {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 9px;
    flex: none;
}
.ko-hud-community .ko-event-icon-btn { margin-top: 0; }
.ko-hud-community .ko-event-icon-btn img { width: 80px; }

.ko-hud-socials {
    width: 106px;
    min-height: 72px;
    grid-template-columns: repeat(3, 30px);
    grid-auto-rows: 30px;
    gap: 4px;
    padding: 0;
    margin-top: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.ko-hud-social-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: #111;
    box-shadow: none;
    color: #fff;
}
.ko-hud-social-btn svg { width: 20px; height: 20px; }
.ko-hud-social-btn.instagram { color: #fff; background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcaf45 100%); }
.ko-hud-social-btn.tiktok { color: #fff; background: #050505; box-shadow: none; filter: none; }
.ko-hud-social-btn.youtube { color: #fff; background: #f00000; }
.ko-hud-social-btn.x { color: #fff; background: #050505; }
.ko-hud-social-btn.telegram { color: #fff; background: #229ed9; }
.ko-hud-social-btn.discord { color: #fff; background: #5865f2; }
.ko-hud-social-btn.whatsapp { color: #fff; background: #25c968; }
.ko-hud-social-btn.is-disabled { opacity: 1; filter: none; }
.ko-hud-social-btn.is-disabled:hover { transform: none; filter: none; }

@media (max-width: 1180px) {
    .ko-hud-socials {
        width: 88px;
        grid-template-columns: repeat(3, 26px);
        grid-auto-rows: 26px;
        gap: 3px;
    }
    .ko-hud-social-btn { width: 26px; height: 26px; }
    .ko-hud-social-btn svg { width: 18px; height: 18px; }
}

/* ========================================================
   ÜST HUD RENK BİRLİĞİ
   Envanter / ticaret / arkadaş pencerelerindeki bordo-bakır palet.
   Yerleşim ve ölçüler korunur; yalnız yüzey, border ve metin tonları değişir.
   ======================================================== */
.ko-player-hud {
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .82));
}
.ko-player-hud .ko-hud-frame-wrap {
    border-color: #4e3d37;
    background: rgba(10, 8, 8, .96);
    box-shadow: inset 0 0 0 2px #261918, 0 5px 14px rgba(0, 0, 0, .78);
}
.ko-player-hud .ko-hud-class-box {
    border-color: #4e3d37;
    background: rgba(10, 8, 8, .96);
    box-shadow: inset 0 0 0 2px #261918, inset 0 0 12px rgba(0, 0, 0, .92);
}
.ko-player-hud .ko-hud-bars-box {
    border-color: #4e3d37;
    background: rgba(10, 8, 8, .96);
    box-shadow: inset 0 0 5px #000, 0 1px 4px rgba(0, 0, 0, .9);
}
.ko-player-hud .ko-hud-name-row {
    color: #f0ddd0;
    background: linear-gradient(90deg, rgba(58, 22, 19, .98) 0%, rgba(26, 13, 12, .96) 100%);
    box-shadow: inset 0 -1px 0 #4e3d37;
}
.ko-player-hud .ko-hud-name-row b { color: #f0ddd0; }
.ko-player-hud .ko-hud-bar-row {
    background: rgba(16, 12, 11, .95);
    box-shadow: inset 0 0 0 1px #4e3d37, inset 0 1px 3px rgba(0, 0, 0, .85);
}
.ko-player-hud .ko-hud-bar-row.is-hp .ko-hud-bar-fill {
    background: linear-gradient(180deg, #e04b43 0%, #ad2927 48%, #671514 100%);
    box-shadow: inset 0 1px 0 rgba(255, 205, 194, .34), inset 0 -1px 0 rgba(35, 5, 5, .82);
}
.ko-player-hud .ko-hud-bar-row.is-mp .ko-hud-bar-fill {
    background: linear-gradient(180deg, #4a83c6 0%, #28598e 48%, #153553 100%);
    box-shadow: inset 0 1px 0 rgba(199, 226, 255, .3), inset 0 -1px 0 rgba(5, 18, 34, .82);
}
.ko-player-hud .ko-hud-bar-row.is-exp .ko-hud-bar-fill {
    background: linear-gradient(180deg, #d6b253 0%, #a87828 50%, #624315 100%);
    box-shadow: inset 0 1px 0 rgba(255, 235, 174, .3), inset 0 -1px 0 rgba(40, 25, 5, .82);
}
.ko-player-hud .ko-hud-bar-text { color: #f7eee8; }

.ko-server-cards .ko-genie,
.ko-server-cards .ko-genie.is-active {
    border-color: #4e3d37;
    background: rgba(10, 8, 8, .96);
    box-shadow: inset 0 0 0 2px #261918, 0 4px 11px rgba(0, 0, 0, .7);
}
.ko-server-cards .ko-genie.is-active {
    border-color: #ad6253;
    box-shadow: inset 0 0 0 2px #261918, 0 0 9px rgba(173, 98, 83, .28);
}
.ko-server-cards .ko-genie-head {
    border-bottom-color: #4e3d37;
    background: linear-gradient(90deg, rgba(58, 22, 19, .98) 0%, rgba(26, 13, 12, .96) 100%);
}
.ko-server-cards .ko-genie-title { color: #f0ddd0; }
.ko-server-cards .ko-genie-row {
    color: #e0dcd7;
    background: rgba(10, 8, 8, .96);
}
.ko-server-cards .ko-genie-row.is-time {
    border-bottom-color: #4e3d37;
}
.ko-server-cards .ko-genie-row.is-time i {
    background: linear-gradient(105deg, rgba(101, 46, 38, .52), rgba(51, 23, 20, .28));
}
.ko-server-cards .ko-genie-row b { color: #f0ddd0; }
.ko-server-cards .ko-genie-row.is-target b { color: #f0ddd0; }
.ko-server-cards .ko-genie.is-active .ko-genie-row.is-time b { color: #f0ddd0; }
.ko-server-cards .ko-genie-btn.is-menu:hover { background: rgba(101, 46, 38, .96); }

.ko-server-cards .ko-server-card,
.ko-server-cards .ko-server-card.is-premium,
.ko-server-cards .ko-server-card.is-info {
    border-color: #4e3d37;
    background: rgba(10, 8, 8, .96);
    box-shadow: inset 0 0 0 1px #261918, 0 2px 5px rgba(0, 0, 0, .64);
}
.ko-server-cards .ko-server-card::before {
    border-right-color: #4e3d37;
    background: linear-gradient(90deg, rgba(58, 22, 19, .98) 0%, rgba(26, 13, 12, .96) 100%);
}
.ko-server-cards .ko-server-card::after { border-right-color: #ba6256; }
.ko-server-cards .ko-server-card .ko-card-text,
.ko-server-cards .ko-server-card.is-info .ko-card-text {
    color: #e0dcd7;
}
.ko-server-cards .ko-server-card.is-premium .ko-card-text { color: #f0ddd0; }
.ko-server-cards .ko-server-card:hover {
    border-color: #ad6253;
    background: linear-gradient(105deg, rgba(101, 46, 38, .96), rgba(51, 23, 20, .96));
}


/* ============================================================
   KLAN PANELİ RENK REVİZYONU: bakır/bordo tema, keskin 90° köşeler
   ============================================================ */

/* Panel çerçevesi */
.klan-panel {
    border-radius: 0 !important;
    border: 1px solid #4e3d37 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0,0,0,0.85) !important;
    color: #e0dcd7;
}

.klan-body {
    background: rgba(10, 8, 8, 0.96) !important;
    color: #e0dcd7;
}

/* Klan oluşturma alanı */
.klan-create-hero {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(135deg, rgba(74, 35, 30, 0.35) 0%, rgba(16, 12, 11, 0.9) 100%) !important;
}

.klan-create-reqs,
.klan-create-reqs:last-child {
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: rgba(14, 11, 10, 0.95) !important;
}

.klan-create-footer {
    border-top-color: #4e3d37 !important;
}

.klan-input-label {
    color: #f0ddd0 !important;
}

.klan-input-wrap input {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(9, 7, 6, 0.95) !important;
    color: #f0ddd0 !important;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.9) !important;
}

.klan-input-wrap input:focus {
    border-color: #8a483e !important;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.9), 0 0 6px rgba(138,72,62,0.4) !important;
}

.is-create-btn {
    border: 1px solid #ad6253 !important;
    border-radius: 0 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
    box-shadow: inset 0 0 0 1px #291815 !important;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 0 1px 2px #000;
}

.is-create-btn:hover:not(:disabled) {
    border-color: #d29a83 !important;
    background: linear-gradient(105deg, #793b30, #48201b) !important;
    color: #fff0e5 !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 10px rgba(146,65,51,0.35) !important;
}

.is-create-btn:disabled {
    opacity: 0.35;
    border-color: #382d28 !important;
    background: #141110 !important;
    color: #685f57 !important;
    filter: none;
}

/* Klan bilgi kutusu (badge block) */
.klan-badge-block {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
}

/* Duyuru kutusu */
.klan-announcement-box {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(14, 11, 10, 0.95) !important;
}

.klan-announcement-header {
    border-bottom: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(58,22,19,0.85) 0%, rgba(26,13,12,0.9) 100%) !important;
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.klan-notice-textarea {
    color: #f0ddd0 !important;
}
.klan-notice-textarea::placeholder {
    color: #4a3930 !important;
}
.klan-notice-display {
    color: #d8cfbe !important;
}

/* Kimlik bilgisi metinleri */
.klan-grade-text { color: #c9a47a !important; }
.klan-name-text { color: #f0ddd0 !important; }
.klan-rank-text { color: #ad6253 !important; }

/* Üye sayısı */
.klan-member-counts { color: #c4b9a5 !important; }
.klan-member-counts .num-online,
.klan-member-counts .num-total { color: #f0ddd0 !important; }

/* Orta ayırıcı çizgi (mid bar) */
.klan-footer-bar {
    border-top-color: #4e3d37 !important;
}

/* Üye tablosu */
.klan-table-container {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(9, 7, 6, 0.95) !important;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.95) !important;
    scrollbar-color: #6a3a33 #0e0b0a !important;
}
.klan-table-container::-webkit-scrollbar-thumb { background: #6a3a33 !important; }

.klan-members-table th {
    background: linear-gradient(180deg, rgba(58,22,19,0.95) 0%, rgba(26,13,12,0.95) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
    color: #f0ddd0 !important;
}

.klan-members-table td {
    border-bottom: 1px solid rgba(78,61,55,0.25) !important;
    color: #d8cfbe;
}

.clan-member-row:nth-child(even) { background: rgba(22,16,14,0.5) !important; }
.clan-member-row:nth-child(odd)  { background: rgba(12,9,8,0.5) !important; }
.clan-member-row:hover           { background: rgba(74,35,30,0.45) !important; }
.clan-member-row.is-self         { background: rgba(74,35,30,0.2) !important; }
.clan-member-row.is-selected     { background: rgba(74,35,30,0.55) !important; box-shadow: inset 0 0 0 1px #8a483e !important; }

/* Lider / üye renkleri - bakır/bordo paleti */
.col-pos.is-leader,
.col-name.is-leader {
    color: #d29a83 !important;
    text-shadow: 0 0 4px rgba(210,154,131,0.4) !important;
}
.col-pos.is-member   { color: #9c9288 !important; }
.col-pos.is-assistant { color: #c9a47a !important; text-shadow: none !important; }
.col-lv              { color: #f0ddd0 !important; }
.col-name            { color: #e0dcd7 !important; }
.col-last.is-online  { color: #7fcda0 !important; }
.col-last.is-offline { color: #6d6457 !important; }

/* Alt aksyon butonları */
.ko-foot-btn {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(58,22,19,0.85) 0%, rgba(26,13,12,0.9) 100%) !important;
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #261918 !important;
    text-shadow: 0 1px 2px #000;
    transition: all 0.15s ease;
}
.ko-foot-btn:hover {
    border-color: #ba6256 !important;
    background: linear-gradient(180deg, rgba(90,34,28,0.95) 0%, rgba(45,17,14,0.95) 100%) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 8px rgba(186,98,86,0.3) !important;
}
.ko-foot-btn.is-refresh {
    display: flex; align-items: center; gap: 5px;
}

.ko-foot-btn.is-leave {
    border-color: #4e3d37 !important;
    color: #e0c8be !important;
}
.ko-foot-btn.is-leave:hover {
    border-color: #d29a83 !important;
    color: #fff !important;
}

.ko-foot-btn.is-disband {
    border-color: #7a3a30 !important;
    color: #f0ddd0 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    box-shadow: inset 0 0 0 1px #291815 !important;
}
.ko-foot-btn.is-disband:hover {
    border-color: #d29a83 !important;
    background: linear-gradient(105deg, #793b30, #48201b) !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 10px rgba(146,65,51,0.35) !important;
}

/* Klan req bildirimleri */
.klan-req-notice .req-ready { color: #c9a47a !important; }
.klan-req-notice .req-warning { color: #e06d53 !important; }

/* ============================================================
   GÖREV PANELİ RENK REVİZYONU: bakır/bordo tema, keskin 90° köşeler
   ============================================================ */

/* Panel çerçevesi */
.quest-panel {
    border-radius: 0 !important;
    border: 1px solid #4e3d37 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0,0,0,0.85) !important;
}

.quest-body {
    background: rgba(10, 8, 8, 0.96) !important;
}

/* Üst çubuk */
.quest-board-topbar {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}

/* Sekmeler */
.quest-board-topbar .quest-tabs .ko-tab-btn {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    color: #c9c1bb !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}
.quest-board-topbar .quest-tabs .ko-tab-btn:hover {
    border-color: #7a3a30 !important;
    color: #f0ddd0 !important;
    background: rgba(36, 22, 20, 0.95) !important;
}
.quest-board-topbar .quest-tabs .ko-tab-btn.is-active {
    border-color: #ad6253 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
    box-shadow: inset 0 0 0 1px #291815, 0 0 8px rgba(173,98,83,0.25) !important;
    text-shadow: 0 1px 2px #000;
}

/* Sayaç rozeti */
.quest-count-badge {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    color: #f0ddd0 !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}

/* Bölge filtresi */
.quest-zone-filter { color: #d8cfbe !important; }
.quest-zone-select {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    color: #f0ddd0 !important;
}
.quest-zone-select:focus { border-color: #8a483e !important; }

/* Tablo çerçevesi */
.quest-table-container {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 7, 0.95) !important;
}

/* Tablo başlık */
.quest-board-table th {
    background: linear-gradient(180deg, rgba(58,22,19,0.97) 0%, rgba(26,13,12,0.97) 100%) !important;
    border-bottom: 2px solid #4e3d37 !important;
    color: #f0ddd0 !important;
}

/* Tablo hücreler */
.quest-board-table td { color: #d8cfbe; }
.quest-board-table tr:nth-child(even) td { background: rgba(22,14,12,0.5) !important; }
.quest-board-table tr:nth-child(odd)  td { background: rgba(12,8,7,0.5) !important; }
.quest-board-table tr:hover           td { background: rgba(74,35,30,0.45) !important; }
.quest-board-table tr.is-ready-row    td { background: rgba(74,35,30,0.3) !important; }

/* Sütun metinleri */
.quest-board-table .col-num,
.quest-board-table .td-num { color: #9c9288 !important; }
.quest-board-table .col-zone,
.quest-board-table .td-zone { color: #d8cfbe !important; }
.quest-board-table .col-name,
.quest-board-table .td-name { color: #f0ddd0 !important; }
.quest-board-table tr:hover .td-name { color: #d29a83 !important; text-decoration: underline; }
.quest-board-table .col-level,
.quest-board-table .td-level { color: #e8e0d5 !important; }

/* Ödül rozeti */
.quest-reward-pill span,
.quest-reward-val { color: #f0ddd0 !important; }

/* İlerleme barı */
.quest-prog-bar {
    border: 1px solid #4e3d37 !important;
    background: #14100c !important;
    border-radius: 0 !important;
}
.quest-prog-bar i {
    background: linear-gradient(
        90deg,
        #6a2a22 0%,
        #ad6253 30%,
        #d29a83 50%,
        #ad6253 70%,
        #6a2a22 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: quest-bar-loading 2s linear infinite !important;
}

/* Ödül al butonu */
.quest-action-btn.is-claim {
    border: 1px solid #ad6253 !important;
    border-radius: 0 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
    box-shadow: 0 0 8px rgba(173,98,83,0.35) !important;
    animation: quest-claim-pulse-ko 1.8s ease-in-out infinite !important;
}
@keyframes quest-claim-pulse-ko {
    0%, 100% { box-shadow: 0 0 5px rgba(173,98,83,0.3); border-color: #7a3a30; }
    50%      { box-shadow: 0 0 10px rgba(210,154,131,0.7); border-color: #d29a83; }
}

/* Tamamlandı etiketi */
.quest-status.is-claimed {
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: rgba(14,11,10,0.6) !important;
    color: #6d6457 !important;
}

/* Boş durum */
.quest-empty {
    color: #7a6a60 !important;
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: rgba(14,11,10,0.6) !important;
    padding: 12px !important;
    text-align: center;
    font-style: italic;
}


/* ============================================================
   YETENEKPANELİ RENK REVİZYONU: bakır/bordo Knight Online teması
   ============================================================ */

.skill-panel {
    border-radius: 0 !important;
    border: 1px solid #4e3d37 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0,0,0,0.85) !important;
}

.skill-body {
    background: rgba(10, 8, 8, 0.96) !important;
}

/* Üst şerit (sınıf + puan) */
.skill-top-strip {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}

.skill-badge-class { color: #9c9288 !important; }
.skill-badge-class b { color: #f0ddd0 !important; }

.skill-points-box { color: #b0a89d !important; }
.skill-points-box strong {
    color: #d29a83 !important;
    text-shadow: 0 0 6px rgba(210,154,131,0.5) !important;
}

/* Sekmeler */
.skill-tabs-bar .ko-tab-btn {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(20, 15, 13, 0.95) !important;
    color: #b0a89d !important;
    font-family: Georgia, 'Times New Roman', serif;
}
.skill-tabs-bar .ko-tab-btn:hover {
    border-color: #7a3a30 !important;
    color: #f0ddd0 !important;
    background: rgba(36, 20, 18, 0.95) !important;
}
.skill-tabs-bar .ko-tab-btn.is-active {
    border-color: #ad6253 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
    box-shadow: inset 0 0 0 1px #291815 !important;
    text-shadow: 0 1px 2px #000;
}

/* Yetenek grid scrollbox */
.skill-pages-wrap {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(9, 7, 6, 0.9) !important;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.85) !important;
    scrollbar-color: #6a3a33 #0e0b0a !important;
}
.skill-pages-wrap::-webkit-scrollbar-thumb { background: #6a3a33 !important; }
.skill-pages-wrap::-webkit-scrollbar-thumb:hover { background: #8a483e !important; }

/* Yetenek kartları */
.skill-item {
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(26,18,15,0.95) 0%, rgba(12,9,7,0.95) 100%) !important;
}
.skill-item:hover {
    border-color: #7a3a30 !important;
    background: linear-gradient(180deg, rgba(46,28,22,0.95) 0%, rgba(22,14,11,0.95) 100%) !important;
}
.skill-item.is-selected {
    border-color: #ad6253 !important;
    background: linear-gradient(180deg, rgba(80,36,28,0.97) 0%, rgba(40,18,14,0.97) 100%) !important;
    box-shadow: 0 0 6px rgba(173,98,83,0.4), inset 0 0 4px rgba(173,98,83,0.2) !important;
}
.skill-item-info b { color: #e6dfd1 !important; }
.skill-item.is-selected .skill-item-info b { color: #f0ddd0 !important; }
.skill-item-info em { color: #8c8273 !important; }

/* İkon çerçevesi */
.skill-icon-frame {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(6,4,3,0.95) !important;
}

/* Kitap bölümü (spell-book) */
.skill-book-container {
    border: 1.5px solid #5e3a32 !important;
    border-radius: 0 !important;
    background: radial-gradient(ellipse at 50% 30%, #2e1911 0%, #1a0d09 55%, #0c0604 100%) !important;
    box-shadow: inset 0 0 16px rgba(0,0,0,0.95), 0 3px 8px rgba(0,0,0,0.7) !important;
}
.skill-book-container::before {
    background: radial-gradient(circle at 50% 50%, rgba(173,98,83,0.07) 0%, transparent 60%) !important;
}

.skill-book-header {
    border-bottom: 1px solid rgba(122,58,48,0.5) !important;
}
.skill-book-header b { color: #f0ddd0 !important; }
.skill-book-type { color: #c9a47a !important; }

.skill-book-desc {
    color: #d29a83 !important;
    text-shadow: 0 0 5px rgba(210,154,131,0.3), 1px 1px 1px #000 !important;
}

.skill-book-meta {
    border-top: 1px dashed rgba(122,58,48,0.5) !important;
}
.skill-meta-row span { color: #c9a47a !important; }
.skill-meta-row b { color: #f0ddd0 !important; }

.skill-book-hint {
    border: 1px solid rgba(122,58,48,0.3) !important;
    background: rgba(0,0,0,0.4) !important;
    color: #9c9288 !important;
}
.skill-book-hint strong { color: #f0ddd0 !important; }

/* Kilitli yetenek */
.skill-item.is-locked {
    border-color: #2d2320 !important;
    opacity: 0.5;
}
.skill-item.is-locked:hover { border-color: #5e2c22 !important; }
.skill-item-info em.is-locked-txt { color: #c05244 !important; }

/* ============================================================
   DEMİRCİ (ANVIL) PANELİ RENK REVİZYONU: bakır/bordo tema
   ============================================================ */

.anvil-panel {
    border-radius: 0 !important;
    border: 1px solid #4e3d37 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0,0,0,0.85) !important;
}

.anvil-body {
    background: rgba(10, 8, 8, 0.96) !important;
}

/* Çalışma alanı */
.anvil-work {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(20,14,12,0.97) 0%, rgba(10,7,5,0.97) 100%) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.9) !important;
}

/* Örs slotları */
.anvil-slot,
.anvil-bag-cell {
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: rgba(8,6,5,0.95) !important;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.9) !important;
}
.anvil-slot:hover,
.anvil-bag-cell.has-item:hover {
    border-color: #ad6253 !important;
}

.anvil-item-slot,
.anvil-result-slot {
    border-color: #5e3a32 !important;
}

.anvil-slot.has-item,
.anvil-bag-cell.has-item {
    background: rgba(18,12,10,0.95) !important;
    border-color: #7a3a30 !important;
}

/* Sonuç slot durumları — animasyon renklerini koruyoruz */
.anvil-result-slot.is-success {
    border-color: #3fd46b !important;
    box-shadow: inset 0 0 10px rgba(63,212,107,0.45), 0 0 8px rgba(63,212,107,0.35) !important;
}
.anvil-result-slot.is-protected {
    border-color: #d29a83 !important;
    box-shadow: inset 0 0 10px rgba(210,154,131,0.35) !important;
}
.anvil-result-slot.is-destroyed {
    border-color: #ff4d4d !important;
    box-shadow: inset 0 0 10px rgba(255,77,77,0.45), 0 0 8px rgba(255,77,77,0.35) !important;
}

/* Sonuç itemi kendi tier zeminini korur; işlem durumu bunun üzerinde parlar. */
.anvil-result-slot.has-item.has-tier-look:not(.is-destroyed):not(.is-failed),
.anvil-break-roulette.has-item.has-tier-look {
    border-color: var(--anvil-tier-border) !important;
    background: var(--anvil-tier-bg) !important;
    box-shadow: var(--anvil-tier-shadow) !important;
}

.anvil-result-slot.has-item.has-tier-look.is-success {
    box-shadow: var(--anvil-tier-shadow), 0 0 9px rgba(63,212,107,0.62) !important;
}

.anvil-result-slot.has-item.has-tier-look.is-protected {
    box-shadow: var(--anvil-tier-shadow), 0 0 9px rgba(210,154,131,0.55) !important;
}

.anvil-break-roulette.has-item.has-tier-look.is-winner {
    border-color: var(--anvil-tier-border) !important;
    box-shadow: var(--anvil-tier-shadow), 0 0 16px rgba(255,210,80,0.9) !important;
}

/* +X ve sayaç etiketleri */
.anvil-plus { color: #d29a83 !important; }
.anvil-count { color: #f0ddd0 !important; }

/* Aksyon butonları */
.anvil-btn {
    border: 1px solid #7a3a30 !important;
    border-radius: 0 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
    box-shadow: inset 0 0 0 1px #291815 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
}
.anvil-btn:hover:not(:disabled) {
    border-color: #d29a83 !important;
    background: linear-gradient(105deg, #793b30, #48201b) !important;
    color: #fff0e5 !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 10px rgba(146,65,51,0.35) !important;
}
.anvil-btn:disabled {
    opacity: 0.35;
}

/* Çanta alanı */
.anvil-bag {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10,7,6,0.95) !important;
}

/* Alt Noah şeridi */
.anvil-footer {
    color: #f0ddd0 !important;
}

/* Isınma rengi: demirciye has bakır-turuncu kor rengi korunuyor (animasyon) */
@keyframes anvilHeat {
    from { box-shadow: inset 0 0 10px rgba(0,0,0,0.85), 0 0 0 rgba(180,70,30,0); }
    to   { box-shadow: inset 0 0 26px rgba(180,70,30,0.35), 0 0 12px rgba(200,80,40,0.35); }
}
@keyframes anvilMatBurn {
    from { border-color: #7a3a30; box-shadow: inset 0 0 4px rgba(200,100,60,0.2); }
    to   { border-color: #d29a83; box-shadow: inset 0 0 12px rgba(200,100,60,0.7); }
}

/* scrollbar */
.anvil-bag::-webkit-scrollbar-thumb { background: #6a3a33 !important; }


/* ============================================================
   DEMİRCİ MOD SEÇİM KARTLARI (anvil-mode) RENK REVİZYONU
   ============================================================ */

.anvil-modes {
    background: rgba(10, 8, 8, 0.96) !important;
}

.anvil-mode {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(26,18,15,0.97) 0%, rgba(12,9,7,0.97) 100%) !important;
    color: #d8cfbe !important;
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: inset 0 0 0 1px #261918 !important;
    transition: all 0.15s ease;
}

.anvil-mode:hover {
    border-color: #7a3a30 !important;
    background: linear-gradient(180deg, rgba(58,28,22,0.97) 0%, rgba(26,14,11,0.97) 100%) !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 10px rgba(122,58,48,0.2) !important;
}

.anvil-mode-icon {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(9, 6, 5, 0.97) !important;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.9) !important;
}

.anvil-mode-text b {
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
}

.anvil-mode-text em {
    color: #9c9288 !important;
    font-style: normal;
    font-size: 10px;
    line-height: 1.35;
}


/* ============================================================
   GATE (WARP) PANELİ RENK REVİZYONU
   ============================================================ */
.warp-list-panel {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 16px 45px rgba(0,0,0,0.85) !important;
    color: #e0dcd7;
}

.warp-titlebar {
    background: linear-gradient(90deg, rgba(58,22,19,.98) 0%, rgba(26,13,12,.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
    box-shadow: none !important;
    height: 26px !important;
}

.warp-title-plate strong {
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    text-shadow: 0 1px 2px #000;
    letter-spacing: 0.5px;
}

.warp-body {
    background: rgba(10, 8, 8, 0.96) !important;
}

.warp-preview-frame {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(8, 6, 5, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918, inset 0 0 10px rgba(0,0,0,0.8) !important;
}

.warp-level-badge {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(9, 7, 6, 0.95) !important;
    color: #c9a47a !important;
    text-shadow: none !important;
}

.warp-dest-list {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(9, 7, 6, 0.95) !important;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.85) !important;
    scrollbar-color: #6a3a33 #0e0b0a !important;
}
.warp-dest-list::-webkit-scrollbar-thumb { background: #6a3a33 !important; }

.warp-dest-item {
    border-radius: 0 !important;
    color: #b0a89d !important;
}
.warp-dest-item:hover {
    background: rgba(74,35,30,0.35) !important;
    color: #f0ddd0 !important;
    text-shadow: 0 0 4px rgba(210,154,131,0.35) !important;
}
.warp-dest-item.is-selected {
    border: 1px solid #ad6253 !important;
    box-shadow: inset 0 0 6px rgba(173,98,83,0.45), 0 0 5px rgba(173,98,83,0.35) !important;
    background: rgba(80,30,22,0.5) !important;
    color: #f0ddd0 !important;
}

.warp-warning-tab {
    background: linear-gradient(180deg, rgba(58,22,19,0.9) 0%, rgba(26,13,12,0.9) 100%) !important;
    border: 1px solid #4e3d37 !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.warp-warning-tab span { color: #f0ddd0 !important; text-shadow: 0 1px 2px #000; }

.warp-warning-box {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(9, 7, 6, 0.95) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.9) !important;
}
.warp-warning-box::-webkit-scrollbar-thumb { background: #6a3a33 !important; }
.warp-warning-title { color: #f0ddd0 !important; }
.warp-warning-text  { color: #a49780 !important; }

.warp-list-footer .ko-action-btn {
    border: 1px solid #ad6253 !important;
    border-radius: 0 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
    box-shadow: inset 0 0 0 1px #291815 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
}
.warp-list-footer .ko-action-btn:hover {
    border-color: #d29a83 !important;
    background: linear-gradient(105deg, #793b30, #48201b) !important;
    color: #fff0e5 !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 10px rgba(146,65,51,0.35) !important;
}

/* ============================================================
   KARAKTER (USER-INFO) PANELİ RENK REVİZYONU
   ============================================================ */
.user-info-panel {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 18px 48px rgba(0,0,0,0.85) !important;
    color: #e0dcd7 !important;
}

.user-info-panel .settings-titlebar {
    background: linear-gradient(90deg, rgba(58, 22, 19, 0.98) 0%, rgba(26, 13, 12, 0.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
}

.user-info-panel .user-info-grid {
    gap: 6px;
    padding: 6px;
    background: rgba(10, 8, 8, 0.96);
}

.user-info-panel .user-info-char.karakter-body {
    padding: 0;
    gap: 5px;
    background: transparent !important;
}

.user-info-panel .karakter-box {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}

.user-info-panel .karakter-val-pill,
.user-info-panel .karakter-stat-points-card {
    border-color: #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
}

.user-info-panel .user-info-wear {
    padding: 0;
}

.user-info-panel .user-info-wear .inventory-wear {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16, 12, 11, 0.95) !important;
    box-shadow: inset 0 0 0 1px #261918, 0 3px 10px rgba(0, 0, 0, 0.65) !important;
}

.user-info-panel .inventory-character-card {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(68, 30, 26, 0.35) 0%, rgba(18, 14, 13, 0.95) 70%),
        #0c0908 !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95), inset 0 0 0 1px #261918 !important;
}

.user-info-panel .inventory-class {
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.3px;
}

.user-info-panel .inventory-slot {
    border-radius: 0 !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #3d2f2a;
    background: rgba(9, 7, 6, 0.95);
    box-sizing: border-box;
}

.user-info-panel .inventory-slot:hover {
    border-color: #ba6256 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.95), 0 0 6px rgba(186, 98, 86, 0.38) !important;
}

.user-info-body { background: transparent !important; }

.user-info-hero b { color: #f0ddd0 !important; }
.user-info-hero span { color: #c9a47a !important; }

.user-info-card dt { color: #9c9288 !important; }
.user-info-card dd { color: #f0ddd0 !important; }

.ui-item-cell {
    background: rgba(9,7,6,0.7) !important;
    box-shadow: inset 0 0 0 1px #3d2f2a !important;
}

.user-info-wear .inventory-wear {
    border: 1px solid #4e3d37 !important;
    background: rgba(9, 7, 6, 0.85) !important;
}

/* ============================================================
   MEKTUP (MAIL) PANELİ RENK REVİZYONU
   ============================================================ */
.mail-panel {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0,0,0,0.85) !important;
}

.mail-body { background: rgba(10, 8, 8, 0.96) !important; }

.mail-head {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(36,22,18,0.95) 0%, rgba(18,11,9,0.95) 100%) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}
.mail-head b    { color: #f0ddd0 !important; }
.mail-head span { color: #9c9288 !important; }

.mail-row {
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(20,14,12,0.95) 0%, rgba(10,7,6,0.95) 100%) !important;
}
.mail-row:hover {
    border-color: #7a3a30 !important;
    background: linear-gradient(90deg, rgba(36,20,16,0.97) 0%, rgba(18,11,9,0.97) 100%) !important;
}
.mail-row.is-new { border-color: #5e3a32 !important; }

.mail-row-text          { color: #b0a89d !important; }
.mail-row-text b        { color: #d29a83 !important; }
.mail-row.is-read .mail-row-text b { color: #c9c1bb !important; }

.mail-new-tag {
    border-radius: 0 !important;
    background: rgba(101,46,38,0.8) !important;
    color: #f0ddd0 !important;
}

.mail-slot {
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: rgba(14,10,8,0.95) !important;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.9) !important;
}
.mail-slot.has-item { border-color: #7a3a30 !important; }
.mail-slot-plus { color: #d29a83 !important; }

.mail-empty  { color: #7a6a60 !important; }
.mail-pager  { color: #d8cfbe !important; }
.mail-count  { color: #f0ddd0 !important; }

.mail-page-btn {
    border: 1px solid #ad6253 !important;
    border-radius: 0 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
    box-shadow: inset 0 0 0 1px #291815 !important;
}

/* Mektup içeriği (parşömen) — aydınlık kağıt görünümü korunuyor, sadece kenarlık */
.mail-letter {
    border: 1px solid #6e4f2b !important;
    border-radius: 0 !important;
}

/* Mail / quest butonları */
.mail-btn,
.quest-btn,
.quest-tab {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(26,18,15,0.97) 0%, rgba(12,9,7,0.97) 100%) !important;
    color: #e0dcd7 !important;
    font-family: Georgia, 'Times New Roman', serif;
}
.mail-btn:hover:not(:disabled),
.quest-btn:hover:not(:disabled),
.quest-tab:hover {
    border-color: #7a3a30 !important;
    color: #f0ddd0 !important;
    background: linear-gradient(180deg, rgba(58,28,22,0.97) 0%, rgba(26,14,11,0.97) 100%) !important;
}
.quest-tab.is-active {
    border-color: #ad6253 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
}
.mail-btn.is-green,
.quest-btn.is-green {
    border-color: #3c7a3a !important;
    background: linear-gradient(180deg, rgba(35,70,22,0.97) 0%, rgba(14,38,9,0.97) 100%) !important;
    color: #c8f0b0 !important;
}
.mail-btn.is-red,
.quest-btn.is-red {
    border-color: #7a3a30 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
    color: #f0e1d4 !important;
}
.mail-btn:disabled,
.quest-btn:disabled { opacity: 0.35; }

/* ============================================================
   MAĞAZA (STORE) PANELİ RENK REVİZYONU
   ============================================================ */
.store-panel {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0,0,0,0.85) !important;
}

.store-body { background: rgba(10, 8, 8, 0.96) !important; }

.store-card {
    border: 1px solid #3d2f2a !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(22,15,13,0.97) 0%, rgba(11,8,6,0.97) 100%) !important;
    transition: border-color 0.12s, background 0.12s;
}
.store-card:hover {
    border-color: #7a3a30 !important;
    background: linear-gradient(180deg, rgba(42,22,18,0.97) 0%, rgba(20,11,9,0.97) 100%) !important;
}
.store-card.is-selected {
    border-color: #ad6253 !important;
    box-shadow: 0 0 8px rgba(173,98,83,0.4) !important;
}
.store-tag {
    background: #7a3a30 !important;
    color: #f0ddd0 !important;
    border-radius: 0 !important;
}
.store-card-icon {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10,7,6,0.97) !important;
}
.store-card-info { color: #b0a89d !important; }
.store-card-info b { color: #f0ddd0 !important; }

.store-detail {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(12,9,8,0.97) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}
.store-detail-head {
    border-bottom: 1px solid #4e3d37 !important;
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
}
.store-detail-icon {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: radial-gradient(circle at 50% 60%, rgba(46,26,18,0.8) 0%, rgba(10,7,5,0.97) 75%) !important;
}
.store-detail-card b    { color: #f0ddd0 !important; }
.store-detail-type      { color: #9c9288 !important; }
.store-detail-rows dt   { color: #9c9288 !important; }
.store-detail-rows dd   { color: #f0ddd0 !important; }
.store-detail-rows dd.is-short { color: #e06d53 !important; }
.store-detail-desc      { color: #b0a89d !important; }

.store-footer {
    border-top: 1px solid #4e3d37 !important;
    background: rgba(12, 9, 8, 0.97) !important;
    color: #d8cfbe !important;
}
.store-footer b { color: #d29a83 !important; }

/* store-panel'in büyük sürümü (16194+) titlebar - benzer override */
.store-panel .store-titlebar {
    background: linear-gradient(90deg, rgba(58,22,19,.98) 0%, rgba(26,13,12,.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
    height: 26px !important;
}
.store-panel .store-titlebar strong {
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px #000 !important;
    letter-spacing: 0.5px !important;
}
.store-panel .store-sidebar button {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(16,12,11,0.95) !important;
    color: #d8cfbe !important;
    justify-content: flex-start !important;
    padding-left: 12px !important;
    text-align: left !important;
}
.store-panel .store-sidebar button.is-active {
    color: #f0ddd0 !important;
    border-color: #ad6253 !important;
    background: linear-gradient(105deg, rgba(101,46,38,0.96), rgba(51,23,20,0.96)) !important;
}
.store-panel button:not([data-close-panel]) {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    color: #d8cfbe !important;
    background: rgba(20,14,12,0.97) !important;
}
.store-panel button:not([data-close-panel]):hover {
    filter: none !important;
    border-color: #7a3a30 !important;
    color: #f0ddd0 !important;
    background: rgba(42,22,18,0.97) !important;
}

/* Dikey mağaza kartları: geniş görünümde iki sıra, beş sütun. */
.store-panel .store-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-height: 440px !important;
}
.store-panel .store-product {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 212px;
    min-width: 0;
    padding: 7px;
    box-sizing: border-box;
    overflow: hidden;
}
.store-panel .store-product h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    margin: 0 0 8px;
    padding: 0 3px 6px;
    line-height: 12px;
    white-space: normal;
}
.store-panel .store-product-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    padding: 4px;
    flex: 0 0 72px;
}
.store-panel .store-product-info {
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    min-height: 42px;
    text-align: center;
}
.store-panel .store-product-info strong { justify-content: center; }
.store-panel .store-product-info del { font-size: 8px; }
.store-panel .store-product > button[data-store-buy] {
    width: 100%;
    min-height: 26px;
    margin-top: auto;
    border: 1px solid #4e3d37 !important;
    color: #e0dcd7 !important;
    background: linear-gradient(180deg, rgba(26,18,15,0.97) 0%, rgba(12,9,7,0.97) 100%) !important;
    font-family: Georgia, 'Times New Roman', serif;
}
.store-panel .store-product > button[data-store-buy]:hover:not(:disabled) {
    border-color: #7a3a30 !important;
    color: #f0ddd0 !important;
    background: linear-gradient(180deg, rgba(58,28,22,0.97) 0%, rgba(26,14,11,0.97) 100%) !important;
}
.store-product-tag {
    position: absolute;
    top: 39px;
    right: 5px;
    z-index: 1;
    padding: 2px 4px;
    border: 1px solid #7a3a30;
    background: #391b17;
    color: #f0ddd0;
    font-size: 7px;
    font-weight: 700;
}
@media (max-width: 900px) {
    .store-panel .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
    .store-panel .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
    .store-panel .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ============================================================
   PAZAR (MARKET) PANELİ RENK REVİZYONU
   ============================================================ */
.market-panel {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 12px 32px rgba(0,0,0,0.85) !important;
}
.market-panel > .settings-titlebar { padding-right: 52px !important; }
.market-panel > .settings-titlebar .market-add-button {
    right: 26px !important;
}
.market-panel > .settings-titlebar .market-add-button::before {
    content: '+' !important;
    font-size: 18px !important;
    line-height: 1 !important;
}
.market-body { background: rgba(10, 8, 8, 0.96) !important; }

.market-notice { color: #f0ddd0 !important; }

.market-search input,
.market-sell-row input {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(8,6,5,0.95) !important;
    color: #f0ddd0 !important;
}
.market-search input:focus,
.market-sell-row input:focus { border-color: #8a483e !important; outline: none; }

.market-table {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10,7,6,0.95) !important;
}
.market-row { border-bottom: 1px solid rgba(78,61,55,0.3) !important; color: #d0c8bc; }
.market-row.is-head {
    background: linear-gradient(180deg, rgba(58,22,19,0.97) 0%, rgba(26,13,12,0.97) 100%) !important;
    color: #f0ddd0 !important;
}
.market-row.is-head button { color: #f0ddd0 !important; }
.market-row.is-head button:hover { color: #d29a83 !important; }

.mk-name b    { color: #f0ddd0 !important; }
.mk-name em   { color: #7a6a60 !important; }
.mk-price     { color: #d29a83 !important; }

.mk-icon {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(36,22,18,0.97) 0%, rgba(18,11,9,0.97) 100%) !important;
}

.market-pager { color: #d8cfbe !important; }
.market-noah  { color: #f0ddd0 !important; }

.market-sell {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(12,9,8,0.97) !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}
.market-sell-title       { color: #f0ddd0 !important; }
.market-sell-title span  { color: #7a6a60 !important; }
.market-sell-row         { color: #d8cfbe !important; }

.market-price-modal { width: min(380px, calc(100vw - 24px)); }
.market-price-modal .ko-confirm-box { width: 100%; box-sizing: border-box; }
.market-price-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px;
    padding: 8px;
    border: 1px solid #4e3d37;
    background: rgba(25, 16, 14, 0.9);
}
.market-price-item > img { width: 42px; height: 42px; object-fit: contain; }
.market-price-item > img[hidden] { display: none; }
.market-price-item > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.market-price-item b { color: #f0ddd0; font-size: 13px; }
.market-price-item span, .market-price-label { color: #c8b9ab; font-size: 11px; }
.market-price-label { display: block; margin: 0 14px 6px; }
.market-price-input { display: flex; align-items: center; gap: 6px; margin: 0 14px 14px; }
.market-price-input input {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #4e3d37;
    background: #080605;
    color: #f0ddd0;
    font: inherit;
}
.market-price-input img { width: 18px; height: 18px; object-fit: contain; }
.market-price-modal .ko-confirm-actions { margin-top: 0; }

.market-create-panel { width: 286px; }
.market-create-body { display: flex; flex-direction: column; gap: 8px; padding: 9px; }
.market-create-hint { color: #c8b9ab; font-size: 11px; line-height: 1.4; }
.market-create-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.market-create-grid .market-listing-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
    padding: 2px;
    cursor: default;
}
.market-create-grid .market-listing-slot.has-item { cursor: pointer; }
.market-listing-slot > img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.market-listing-count {
    position: absolute;
    top: 1px;
    right: 2px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    z-index: 6;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none;
}
.market-listing-price {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 2px;
    padding: 1px 1px 2px;
    background: none !important;
    color: #ffe7a8 !important;
    font-size: 6px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px #000, 1px 0 2px #000, -1px 0 2px #000;
    pointer-events: none;
}
.market-create-grid .market-listing-price img {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px;
    flex: 0 0 8px;
    margin: 0;
    padding: 0 !important;
    object-fit: contain;
}
.market-listing-price b { min-width: 0; overflow: hidden; color: inherit; font-size: inherit; line-height: inherit; font-weight: 800; }
.market-create-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 28px;
    gap: 8px;
    padding: 0 7px;
    border: 1px solid #4e3d37;
    color: #d8cfbe;
    font-size: 11px;
}
.market-create-total > b { display: inline-flex; align-items: center; justify-self: end; gap: 4px; min-width: 0; white-space: nowrap; color: #ffe7a8; }
.market-create-total img { display: block; width: 14px; height: 14px; flex: 0 0 14px; object-fit: contain; }
.market-create-actions { display: flex; gap: 6px; }
.market-create-actions button { flex: 1; }
.market-create-actions button:disabled { opacity: .5; cursor: default; }
.market-create-panel.is-seller-view .market-create-total,
.market-create-panel.is-seller-view .market-create-actions { display: none; }
.market-create-total[hidden],
.market-create-actions[hidden] { display: none !important; }

/* Pazar ilan tablosu: item, satıcı, birim fiyat ve konum için ayrı sütunlar. */
.market-panel .market-row { grid-template-columns: 46px minmax(140px, 1fr) 88px 120px 78px; }
.market-panel .mk-name { gap: 6px; min-width: 0; }
.market-panel .mk-name b { flex: 1; min-width: 0; }
.market-panel .mk-seller {
    min-width: 0;
    overflow: hidden;
    padding: 0 4px;
    color: #a99b8b;
    font-size: 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.market-panel .market-row.is-head .mk-seller { color: #f0ddd0; font-weight: 800; }
.market-panel .mk-item-icon {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
}
.market-panel .mk-name .mk-item-icon img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 2px;
    box-sizing: border-box;
    object-fit: contain;
}

/* Pazar ilanları: işlem düğmeleri için ayrı son sütun. */
.market-panel .market-row { grid-template-columns: 38px minmax(130px, 1fr) 44px 44px 80px 115px 82px; column-gap: 6px; }
.market-panel.is-market-history .market-row { grid-template-columns: minmax(150px, 1fr) 44px 44px 94px 120px 130px; column-gap: 8px; }
.market-panel.is-market-history .market-row .mk-chat,
.market-panel.is-market-history .market-row .mk-actions { display: none !important; }
.market-panel:not(.is-market-history) .market-row.is-head [data-market-head="location"] { display: none; }
.market-panel .mk-actions { display: flex; align-items: center; justify-content: center; min-width: 0; }
.market-panel .mk-actions .market-buy-button,
.market-panel .mk-actions .market-cancel-button { min-height: 22px; height: 22px; padding: 0 6px; font-size: 10px; white-space: nowrap; }
.market-panel .market-row.is-head .mk-actions { color: #f0ddd0; font-weight: 800; text-align: center; }
.market-panel .mk-price { justify-content: flex-start; text-align: left; white-space: nowrap; }
.market-panel .market-row.is-head .mk-price { justify-content: flex-start; }
.market-panel .mk-count { min-width: 0; padding: 0 3px; color: #c9bba9; text-align: center; white-space: nowrap; }
.market-panel .market-row.is-head .mk-count { color: #f0ddd0; font-weight: 800; }
.market-panel .mk-degree { min-width: 0; padding: 0 2px; color: #d8c79a; text-align: center; white-space: nowrap; }
.market-panel .market-row.is-head .mk-degree { color: #f0ddd0; font-weight: 800; }
.market-panel .mk-item-icon { position: relative; }
.market-panel .market-row:not(.is-head) .mk-chat { display: flex; align-self: stretch; align-items: stretch; justify-content: stretch; padding: 0; }
.market-panel .market-row:not(.is-head) .mk-chat .mk-icon { display: flex; flex: 1; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 30px; box-sizing: border-box; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; }
.market-panel .market-row:not(.is-head) .mk-chat .mk-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.market-history-row .mk-loc em { overflow: visible; font-size: 9px; letter-spacing: -.2px; text-overflow: clip; white-space: nowrap; }
.market-history-row .mk-loc { white-space: nowrap; }
.market-history-row .mk-seller { white-space: nowrap; }
.market-panel .market-row.is-head [data-market-head="location"] { white-space: nowrap; }
.market-search-field { position: relative; display: flex; flex: 1 1 auto; min-width: 0; height: 24px; }
.market-search-field input { width: 100%; height: 24px; box-sizing: border-box; padding-right: 46px; }
.market-search-field button[type="submit"] { position: absolute; top: 2px; right: 2px; z-index: 1; min-width: 38px; height: 20px; padding: 0 7px; }
.market-search > button { flex: 0 0 auto; padding-right: 7px; padding-left: 7px; white-space: nowrap; }
.market-search > button[data-market-history-type] { font-size: 10px; }
.market-search > button.is-active { border-color: #9a6758; background: linear-gradient(180deg, #542a23, #321916); color: #f0ddd0; }

/* Satın alma penceresi genel onay kutusunun kırmızı vurgusunu kullanmaz. */
.market-buy-modal { width: min(326px, calc(100vw - 20px)); max-width: none; padding: 0; border: 0; background: transparent; }
.market-buy-modal .ko-confirm-box { width: 100%; box-sizing: border-box; margin: 0; border-color: #4e3d37; box-shadow: 0 18px 50px rgba(0,0,0,.78), inset 0 0 0 2px #211816; }
.market-buy-modal .settings-titlebar { display: flex; align-items: center; justify-content: space-between; }
.market-buy-item { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 10px; border-bottom: 1px solid #30251f; color: #f0dfd3; }
.market-buy-icon { position: relative; display: flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 34px; overflow: hidden; padding: 0; }
.market-buy-icon > img { display: block; width: 100%; height: 100%; padding: 2px; box-sizing: border-box; object-fit: contain; }
.market-buy-icon > img[hidden] { display: none; }
.market-buy-item > b { font-size: 12px; }
.market-buy-unit, .market-buy-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; color: #c9bba9; font-size: 11px; }
.market-buy-unit > b, .market-buy-total > b { display: inline-flex; align-items: center; gap: 5px; color: #ffe7a8; white-space: nowrap; }
.market-buy-unit img, .market-buy-total img { display: block; width: 16px; height: 16px; object-fit: contain; }
.market-buy-count-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 10px 8px; }
.market-buy-count-line[hidden] { display: none !important; }
.market-buy-count-label { display: block; padding: 0; color: #c9bba9; font-size: 12px; }
.market-buy-count-row { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 0; }
.market-buy-count-row input { width: 72px; height: 24px; box-sizing: border-box; border: 1px solid #4e3d37; background: #080706; color: #f0e6d2; text-align: center; font: inherit; }
.market-buy-count-row button { min-width: 28px; height: 26px; }
.market-buy-count-row button:disabled { opacity: .45; cursor: default; }
.market-buy-total { margin: 0 10px 7px; padding: 6px 0; border-top: 1px solid #30251f; border-bottom: 1px solid #30251f; }
.market-buy-modal .ko-confirm-actions { display: flex; gap: 6px; padding: 0 10px 9px; }
.market-buy-modal .ko-confirm-actions button { flex: 1; }
@media (max-width: 680px) {
    .market-panel .market-row { grid-template-columns: 30px minmax(100px, 1fr) 40px 38px 64px 100px 74px; column-gap: 4px; }
    .market-panel.is-market-history .market-row { grid-template-columns: minmax(100px, 1fr) 38px 36px 70px 96px 105px; column-gap: 5px; }
    .market-panel .mk-actions .market-buy-button, .market-panel .mk-actions .market-cancel-button { padding: 0 3px; font-size: 9px; }
}


/* ============================================================
   KARAKTER PANELİ RENK REVİZYONU: bakır/bordo Knight Online teması
   ============================================================ */

.karakter-panel {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 0 2px #261918, 4px 0 18px rgba(0,0,0,0.85) !important;
    color: #e0dcd7;
}

/* Başlık çubuğu */
.karakter-titlebar {
    background: linear-gradient(90deg, rgba(58,22,19,.98) 0%, rgba(26,13,12,.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
    height: 26px !important;
    padding: 0 28px 0 10px !important;
}

.karakter-title-dot {
    background: #ba6256 !important;
    box-shadow: 0 0 6px #ba6256 !important;
}

.karakter-title-plate strong {
    color: #f0ddd0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px #000;
}

/* Sekmeler */
.karakter-tabs-bar {
    background: rgba(10, 8, 8, 0.96) !important;
    border-bottom: 1px solid #4e3d37 !important;
    padding: 4px 6px !important;
}

.karakter-tabs-bar .ko-tab-btn {
    border: 1px solid #3e3936 !important;
    border-radius: 0 !important;
    background: rgba(10, 9, 8, 0.92) !important;
    box-shadow: inset 0 0 0 1px #1d1a19 !important;
    color: #a89f91 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}
.karakter-tabs-bar .ko-tab-btn:hover {
    border-color: #744638 !important;
    color: #f0ddd0 !important;
    background: rgba(28, 20, 18, 0.95) !important;
}
.karakter-tabs-bar .ko-tab-btn.is-active {
    border-color: #a25c4e !important;
    background: linear-gradient(180deg, rgba(68, 28, 24, 0.96) 0%, rgba(28, 13, 12, 0.96) 100%) !important;
    color: #f0ddd0 !important;
    box-shadow: inset 0 0 0 2px #261918, 0 0 8px rgba(162, 92, 78, 0.25) !important;
    text-shadow: 0 1px 2px #000;
}

/* Gövde */
.karakter-body { background: rgba(10, 8, 8, 0.96) !important; }

/* İç kutular */
.karakter-box {
    background: rgba(16, 12, 11, 0.95) !important;
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 1px #261918 !important;
}

/* Etiketler */
.karakter-lbl { color: #e0dcd7 !important; }

/* Değer hapları */
.karakter-val-pill {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.9) !important;
    color: #f0ddd0 !important;
}

/* Stat puanı kartı */
.karakter-stat-points-card {
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.96) !important;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8) !important;
}
.karakter-stat-points-title { color: #e0dcd7 !important; }
.karakter-stat-points-val {
    color: #d29a83 !important;
    text-shadow: 0 0 5px rgba(210,154,131,0.45) !important;
}

/* Stat isimleri */
.karakter-stat-name { color: #f0ddd0 !important; }

/* + butonu */
.karakter-plus-btn {
    border: 1px solid #7a3a30 !important;
    border-radius: 0 !important;
    background: linear-gradient(105deg, rgba(80,36,28,0.97), rgba(40,18,14,0.97)) !important;
    color: #d29a83 !important;
    box-shadow: inset 0 0 0 1px #291815 !important;
}
.karakter-plus-btn:hover:not(.is-disabled) {
    border-color: #d29a83 !important;
    background: linear-gradient(105deg, #6a2a22, #38180f) !important;
    color: #f0ddd0 !important;
    box-shadow: inset 0 0 0 1px #38201b, 0 0 5px rgba(210,154,131,0.4) !important;
}
.karakter-plus-btn.is-disabled {
    border-color: #2d2320 !important;
    background: rgba(12,9,7,0.97) !important;
    color: #4a3d37 !important;
    box-shadow: none !important;
}

/* Dirençler başlığı */
.karakter-resist-header {
    color: #f0ddd0 !important;
    border-bottom: 1px solid #4e3d37 !important;
    text-shadow: 0 1px 2px #000;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

/* Bonus satırları */
.karakter-bonus-row {
    border: 0 !important;
    border-bottom: 1px solid #4e3d37 !important;
}
.karakter-bonus-row:last-child { border-bottom: 0 !important; }
.karakter-bonus-bullet {
    background: #ba6256 !important;
    box-shadow: 0 0 3px rgba(186,98,86,0.5) !important;
}
.karakter-bonus-lbl { color: #e0dcd7 !important; }
.karakter-bonus-val {
    color: #f0ddd0 !important;
    text-shadow: 0 1px 2px #000;
}

/* ============================================================
   ALT HUD + SKILL BAR RENK BİRLİĞİ
   Envanter / ticaret / arkadaş pencerelerindeki bordo-bakır palet.
   ============================================================ */
.ko-chat-zone .ko-nearby-box,
.ko-chat-zone .ko-chat-box,
.ko-log-zone .ko-log-main {
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 1px #261918, 0 4px 14px rgba(0, 0, 0, 0.72);
}

.ko-chat-zone .ko-nearby-bar,
.ko-chat-zone .ko-chat-bar,
.ko-log-zone .ko-log-bar {
    background: rgba(16, 12, 11, 0.95);
    border-color: #4e3d37;
}

.ko-chat-zone .ko-scroll-track,
.ko-log-zone .ko-scroll-track {
    border-color: #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
}

.ko-chat-zone .ko-scroll-thumb,
.ko-log-zone .ko-scroll-thumb {
    border-radius: 0;
    background: linear-gradient(180deg, #ba6256 0%, #6f3028 100%);
    box-shadow: inset 0 1px 0 rgba(240, 221, 208, 0.34), 0 0 4px rgba(186, 98, 86, 0.32);
}

.ko-chat-zone .ko-scroll-arrow,
.ko-log-zone .ko-scroll-arrow,
.ko-chat-zone .ko-pager-btn {
    color: #d29a83;
}

.ko-chat-zone .ko-chat-input-form {
    border-top: 1px solid #4e3d37;
    background: rgba(10, 8, 8, 0.96);
}

.ko-chat-zone .ko-chat-input-form input {
    color: #e0dcd7;
}

.ko-chat-zone .ko-chat-input-form input:focus {
    background: rgba(16, 12, 11, 0.95);
}

.ko-chat-zone .ko-tab-btn,
.ko-log-zone .ko-tab-btn {
    border: 1px solid #3e3936 !important;
    border-radius: 0 !important;
    background: rgba(10, 9, 8, 0.92) !important;
    box-shadow: inset 0 0 0 1px #1d1a19 !important;
    color: #a89f91 !important;
    text-shadow: 0 1px 2px #000 !important;
}

.ko-chat-zone .ko-tab-btn:hover,
.ko-log-zone .ko-tab-btn:hover {
    border-color: #744638 !important;
    background: rgba(28, 20, 18, 0.95) !important;
    color: #f0ddd0 !important;
}

.ko-chat-zone .ko-tab-btn.is-active,
.ko-log-zone .ko-tab-btn.is-active {
    border-color: #a25c4e !important;
    background: linear-gradient(180deg, rgba(68, 28, 24, 0.96) 0%, rgba(28, 13, 12, 0.96) 100%) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 0 8px rgba(162, 92, 78, 0.25) !important;
    color: #f0ddd0 !important;
}

.ko-chat-zone .ko-menu-item,
.ko-log-zone .ko-menu-item {
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    box-shadow: inset 0 0 0 1px #261918, 0 2px 6px rgba(0, 0, 0, 0.48);
    color: #e0dcd7;
}

.ko-chat-zone .ko-menu-item:hover,
.ko-log-zone .ko-menu-item:hover {
    border-color: #744638;
    background: rgba(28, 20, 18, 0.95);
    color: #f0ddd0;
}

.ko-chat-zone .ko-menu-item:active,
.ko-chat-zone .ko-menu-item.is-active,
.ko-log-zone .ko-menu-item:active,
.ko-log-zone .ko-menu-item.is-active {
    border-color: #a25c4e;
    background: linear-gradient(180deg, rgba(68, 28, 24, 0.96) 0%, rgba(28, 13, 12, 0.96) 100%);
    box-shadow: inset 0 0 0 2px #261918, 0 0 8px rgba(162, 92, 78, 0.25);
    color: #f0ddd0;
    text-shadow: 0 1px 2px #000;
}

.ko-log-zone .ko-lock-btn {
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    color: #d29a83;
}

.ko-log-zone .ko-lock-btn:hover {
    border-color: #744638;
    background: rgba(28, 20, 18, 0.95);
}

.ko-skill-bar.is-v3 .ko-sb-slot,
.ko-skill-bar.is-v3 .ko-sb-pager,
.ko-skill-bar.is-v3 .ko-sb-more-toggle {
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.90);
    box-shadow: inset 0 0 0 1px #261918;
}

.ko-skill-bar.is-v3 .ko-sb-slot:hover,
.ko-skill-bar.is-v3 .ko-sb-pager:hover,
.ko-skill-bar.is-v3 .ko-sb-more-toggle:hover {
    border-color: #a25c4e;
    box-shadow: inset 0 0 0 1px #261918, 0 0 7px rgba(162, 92, 78, 0.32);
}

.ko-skill-bar.is-v3 .ko-sb-slot.is-active,
.ko-skill-bar.is-v3 .ko-sb-line.is-page-active .ko-sb-pager {
    border-color: #a25c4e;
    background: linear-gradient(180deg, rgba(68, 28, 24, 0.94) 0%, rgba(28, 13, 12, 0.94) 100%);
    box-shadow: inset 0 0 0 1px #261918, 0 0 7px rgba(162, 92, 78, 0.34);
}

.ko-skill-bar.is-v3 .ko-sb-page-num,
.ko-skill-bar.is-v3 .ko-sb-line.is-page-active .ko-sb-page-num,
.ko-skill-bar.is-v3 .ko-sb-page-arrow,
.ko-skill-bar.is-v3 .sb-chev {
    color: #f0ddd0;
    border-color: #d29a83;
    text-shadow: 0 1px 2px #000;
}

.ko-skill-bar.is-v3 .ko-sb-key {
    color: #f0ddd0;
    text-shadow: 0 1px 2px #000;
}

/* Mesaj alanı içerikle birleşir; üst ayırıcı çizgi kullanılmaz. */
.ko-chat-zone .ko-chat-input-form {
    border-top: 0;
    box-shadow: none;
}

/* ============================================================
   BOSS GANİMET DETAYI — bordo-bakır pencere sistemi
   ============================================================ */
.map-boss-modal {
    width: min(520px, 92vw);
    padding: 0;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.98);
    box-shadow: inset 0 0 0 2px #261918, 0 18px 48px rgba(0, 0, 0, 0.88);
    color: #e0dcd7;
}

.map-boss-modal::backdrop {
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(3px);
}

.map-boss-modal header {
    min-height: 26px;
    margin: 0;
    padding: 0 0 0 9px;
    border-bottom: 1px solid #4e3d37;
    background: linear-gradient(90deg, rgba(58, 22, 19, 0.98) 0%, rgba(26, 13, 12, 0.96) 100%);
}

.map-boss-modal header strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #f0ddd0;
    font: 700 12px/1 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.3px;
}

.map-boss-modal .boss-modal-mark {
    padding: 3px 6px;
    border: 1px solid #ad6253;
    border-radius: 0;
    background: linear-gradient(105deg, rgba(101, 46, 38, 0.96), rgba(51, 23, 20, 0.96));
    color: #f0ddd0;
}

.map-boss-modal header button {
    margin-left: auto;
    border: 0;
    border-left: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(40, 20, 18, 0.75);
    color: #f0ddd0;
}

.map-boss-modal .boss-modal-body {
    padding: 10px 12px 12px;
}

.map-boss-modal header button:hover {
    background: #7a2b22;
    color: #fff;
}

.map-boss-modal .boss-modal-summary {
    gap: 6px;
    margin: 10px 0;
}

.map-boss-modal .boss-modal-summary span {
    padding: 8px 10px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
}

.map-boss-modal .boss-modal-summary small {
    color: #a89f91;
    letter-spacing: 0.5px;
}

.map-boss-modal .boss-modal-summary b {
    color: #f0ddd0;
}

.map-boss-modal .boss-modal-section-title {
    border-bottom-color: #4e3d37;
}

.map-boss-modal .boss-modal-section-title span {
    color: #f0ddd0;
    font-family: Georgia, 'Times New Roman', serif;
}

.map-boss-modal .boss-modal-section-title small {
    color: #a89f91;
}

.map-boss-modal .boss-drops {
    gap: 6px;
}

.map-boss-modal .boss-drops article {
    position: relative;
    min-height: 50px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
}

.map-boss-modal .boss-drops article:hover {
    border-color: #a25c4e;
    background: rgba(28, 20, 18, 0.95);
}

.map-boss-modal .boss-drops article > span {
    padding-right: 38px;
    color: #e0dcd7;
    font-weight: 700;
}

.map-boss-modal .boss-drop-rate {
    position: absolute;
    top: 5px;
    right: 7px;
    margin: 0;
    color: #d29a83;
    font-size: 8px;
    font-weight: 700;
}

/* ============================================================
   EVENT MERKEZİ — takvim, özet ve detay görünümü
   ============================================================ */
.event-panel {
    width: 430px;
    max-width: calc(100vw - 32px);
    border: 1px solid #4e3d37 !important;
    border-radius: 0 !important;
    background: rgba(10, 8, 8, 0.98) !important;
    box-shadow: inset 0 0 0 2px #261918, 0 16px 42px rgba(0, 0, 0, 0.86) !important;
    color: #e0dcd7;
}

.event-panel > .settings-titlebar,
.event-detail-side > .settings-titlebar {
    background: linear-gradient(90deg, rgba(58, 22, 19, 0.98) 0%, rgba(26, 13, 12, 0.96) 100%) !important;
    border-bottom: 1px solid #4e3d37 !important;
}

.event-body {
    padding: 8px;
    background: rgba(10, 8, 8, 0.98);
}

.event-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 174px;
    gap: 10px;
    align-items: center;
    margin-bottom: 7px;
    padding: 10px;
    border: 1px solid #4e3d37;
    background:
        linear-gradient(110deg, rgba(81, 35, 30, 0.48), rgba(16, 12, 11, 0.86) 58%),
        rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
}

.event-overview-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-overview-copy > span {
    color: #ba6256;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.event-overview-copy > b {
    color: #f0ddd0;
    font: 700 16px/1.2 Georgia, 'Times New Roman', serif;
}

.event-overview-copy > small {
    overflow: hidden;
    color: #a89f91;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.event-overview-stats > span {
    min-width: 0;
    padding: 6px 2px;
    border: 1px solid #4e3d37;
    background: rgba(10, 8, 8, 0.88);
    text-align: center;
}

.event-overview-stats b,
.event-overview-stats small {
    display: block;
}

.event-overview-stats b {
    color: #f0ddd0;
    font: 800 15px/1 Georgia, 'Times New Roman', serif;
}

.event-overview-stats small {
    margin-top: 3px;
    overflow: hidden;
    color: #a89f91;
    font-size: 7.5px;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.event-nav {
    margin-bottom: 6px;
    padding: 4px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
}

.event-nav-btn {
    width: 28px;
    height: 26px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
}

.event-nav-btn:hover {
    border-color: #a25c4e;
    background: linear-gradient(180deg, rgba(68, 28, 24, 0.96), rgba(28, 13, 12, 0.96));
}

.event-month-year {
    color: #f0ddd0;
    font-size: 14px;
    letter-spacing: 0.4px;
}

.event-weekdays {
    gap: 3px;
    margin-bottom: 3px;
    padding: 0;
}

.event-weekdays span {
    height: 22px;
    border: 1px solid #3e3936;
    background: rgba(10, 9, 8, 0.92);
    color: #a89f91;
    font-size: 9px;
}

.event-calendar-grid {
    gap: 3px;
    margin-bottom: 0;
}

.event-day {
    min-height: 46px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px;
    border: 1px solid #3e3936;
    border-radius: 0;
    background: rgba(10, 9, 8, 0.90);
    box-shadow: inset 0 0 0 1px #1d1a19;
}

.event-day:hover {
    border-color: #744638;
    background: rgba(28, 20, 18, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
}

.event-day.is-today {
    border-color: #d29a83;
    box-shadow: inset 0 0 0 1px #261918, 0 0 7px rgba(210, 154, 131, 0.25);
}

.event-day.is-today .event-day-number,
.event-day.is-selected .event-day-number {
    color: #f0ddd0;
}

.event-day.is-selected {
    border-color: #a25c4e;
    background: linear-gradient(145deg, rgba(68, 28, 24, 0.92), rgba(20, 11, 10, 0.96));
    box-shadow: inset 0 0 0 2px #261918, 0 0 8px rgba(162, 92, 78, 0.28);
}

.event-day-number {
    z-index: 3;
    color: #e0dcd7;
    font-size: 11px;
}

.event-day-bg {
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: contain;
    object-position: center;
    opacity: 0.24;
    filter: saturate(0.8) contrast(1.1);
}

.event-day::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(10, 8, 8, 0.08), rgba(10, 8, 8, 0.72));
}

.event-day-accent {
    position: absolute;
    z-index: 3;
    right: 4px;
    bottom: 4px;
    left: 4px;
    height: 2px;
    background: #8c8273;
}

.event-day-accent.type-boss { background: #ba6256; }
.event-day-accent.type-drop { background: #4e9f8d; }
.event-day-accent.type-exp { background: #d2a65e; }
.event-day-accent.type-pvp { background: #c66a50; }
.event-day-accent.type-buff { background: #8b6eb0; }

.event-day-count {
    position: absolute;
    z-index: 4;
    top: 4px;
    right: 4px;
    min-width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border: 1px solid #a25c4e;
    background: rgba(40, 18, 16, 0.94);
    color: #f0ddd0;
    font-size: 8px;
}

.event-detail-side {
    left: calc(100% + 8px);
    width: 300px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.98);
    box-shadow: inset 0 0 0 2px #261918, 0 16px 42px rgba(0, 0, 0, 0.86);
}

.game-modal-stage[data-active-panel="event"]:has(.event-detail-side:not([hidden])) .game-modal-container {
    transform: translate(calc(-50% - 154px), -50%);
}

.event-detail-side-body {
    padding: 8px;
    gap: 8px;
    background: rgba(10, 8, 8, 0.98);
    scrollbar-color: #744638 transparent;
}

.event-detail-side-day {
    min-height: 26px;
    padding: 0 0 7px;
    border-bottom: 1px solid #4e3d37;
}

.event-detail-side-day > span:first-child {
    color: #f0ddd0;
    font-size: 12px;
}

.event-side-switch b {
    color: #d29a83;
}

.event-side-switch button {
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
    color: #f0ddd0;
}

.event-side-switch button:hover {
    border-color: #a25c4e;
    background: rgba(68, 28, 24, 0.96);
}

.event-detail-side-info {
    gap: 8px;
}

.event-detail-side-head {
    padding: 7px;
    border: 1px solid #4e3d37;
    background: rgba(16, 12, 11, 0.95);
    box-shadow: inset 0 0 0 1px #261918;
}

.event-detail-side-icon {
    width: 46px;
    height: 46px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(10, 8, 8, 0.96);
}

.event-detail-side-titles b {
    color: #f0ddd0;
    font: 700 13px/1.3 Georgia, 'Times New Roman', serif;
}

.event-type-chip {
    padding: 2px 7px;
    border-radius: 0;
    font-size: 8px;
}

.event-detail-side-rows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.event-detail-side-row {
    min-height: 28px;
    padding: 6px 8px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
}

.event-detail-side-row dt,
.event-detail-side-label {
    color: #a89f91;
}

.event-detail-side-row dd {
    color: #e0dcd7;
}

[data-event-detail-status][data-status="active"] { color: #7fc995; }
[data-event-detail-status][data-status="upcoming"] { color: #d29a83; }
[data-event-detail-status][data-status="ended"] { color: #877b72; }

.event-detail-side-section {
    gap: 5px;
}

.event-detail-side-label {
    padding-bottom: 4px;
    border-bottom: 1px solid #4e3d37;
}

.event-detail-side-desc {
    padding: 8px;
    border: 1px solid #4e3d37;
    background: rgba(16, 12, 11, 0.95);
    color: #e0dcd7;
    line-height: 1.55;
}

.event-detail-side-rewards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.event-reward-tag {
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #4e3d37;
    border-radius: 0;
    background: rgba(16, 12, 11, 0.95);
    color: #f0ddd0;
}

.event-reward-tag img {
    width: 20px;
    height: 20px;
    border: 1px solid #3e3936;
    background: rgba(10, 8, 8, 0.96);
}

@media (max-width: 760px) {
    .event-panel { width: min(430px, calc(100vw - 20px)); }
    .event-overview { grid-template-columns: 1fr; }
    .event-overview-stats { grid-template-columns: repeat(3, 1fr); }
    .event-detail-side {
        left: 0;
        top: calc(100% + 6px);
        width: 100%;
        height: auto;
        max-height: 48vh;
    }
}

/* Equipment drag feedback must remain visible over inline tier colours. */
.inventory-panel [data-equip-index].is-drop-ok {
    border-color: #3fd46b !important;
    outline: 2px solid #3fd46b;
    outline-offset: -2px;
    box-shadow: inset 0 0 10px #3fd46b66, 0 0 8px #3fd46b88 !important;
}
.inventory-panel [data-equip-index].is-drop-bad {
    border-color: #c0392b !important;
    outline: 1px solid #c0392b;
    outline-offset: -1px;
}
.inventory-panel [data-equip-index].is-drop-ok.is-drop-hover {
    border-color: #9affb4 !important;
    outline-color: #9affb4;
}

/* Compact camera-oriented map in the shared burgundy / bronze HUD palette. */
.ko-minimap {
    position:absolute; top:180px; right:12px; z-index:28;
    width:176px; height:176px; pointer-events:auto; user-select:none;
}
.ko-minimap-dial {
    position:relative; width:100%; height:100%; padding:0; box-sizing:border-box;
    overflow:hidden; border-radius:50%; border:2px solid #8d6251;
    background:#171610; box-shadow:0 4px 14px #0008;
}
.ko-minimap canvas { display:block; width:100%; height:100%; border-radius:50%; }
.ko-minimap-zoom {
    position:absolute; bottom:5px; left:50%; transform:translateX(-50%);
    display:flex; align-items:center; gap:2px; pointer-events:none;
}
.ko-minimap-zoom button {
    display:flex; align-items:center; justify-content:center; width:25px; height:25px;
    padding:0; border:0; border-radius:0; background:none; box-shadow:none;
    color:#eed6c4; font:20px/1 Arial,sans-serif; text-shadow:0 1px 3px #000,0 0 4px #000;
    cursor:pointer; pointer-events:auto;
}
.ko-minimap-zoom button:hover { color:#fff3e9; }
.ko-minimap-zoom button:disabled { opacity:.35; cursor:default; }
.ko-minimap-zoom button:focus-visible { outline:1px solid #edc1a4; outline-offset:-3px; }
@media(max-height:600px) { .ko-minimap { top:166px; transform:scale(.9); transform-origin:top right; } }

/* GM dünya görünürlüğü listesinde NPC kodları */
.gm-npc-code {
    color: #c77dff;
    font-style: normal;
    font-weight: 900;
}
