/* Obur.io — main page styles. Copyright (c) 2026 kurmay. All rights reserved.
   Layout, sizes and colors the mod menu themes are made for.
   Measured at 1366x768; obur.js scales .flex-menu down on smaller windows. */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
/* the mod menu sizes its corners in rem against this 10px root */
html {
    font-family: Arial, sans-serif;
    font-size: 10px;
    -webkit-tap-highlight-color: transparent;
}
body {
    background: #000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    -webkit-text-size-adjust: none;
}
/* form controls inherit color and font (normalize.css, as on the original page): the mod menu relies on it */
button, input, optgroup, select, textarea { margin: 0; color: inherit; font: inherit; }
button { overflow: visible; text-transform: none; cursor: pointer; border: none; }
input { line-height: normal; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; margin: 4px 0 0; line-height: normal; cursor: pointer; }
a { background-color: rgba(255, 255, 255, 0); color: #337ab7; text-decoration: none; }
b, strong { font-weight: 700; }
img { border: 0; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
canvas { display: inline-block; vertical-align: baseline; }
hr { height: 0; box-sizing: content-box; margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; }
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700; }
ul, ol { margin-top: 0; margin-bottom: 10px; }
p { margin: 0 0 10px; }
h1, h2, h3, h4 { margin: 0; }
/* headings the mod builds (theme editor) use the original page's heading base */
.themeEditor h3 { margin: 20px 0 10px; font-family: inherit; font-size: 24px; font-weight: 500; line-height: 1.1; color: inherit; }
.hide, .line--hidden { display: none !important; }

#canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; }

/* ---------- page ---------- */
main.body__inner { position: relative; width: 100%; height: 100%; overflow: hidden; z-index: 2; pointer-events: none; }
main.body__inner > * { pointer-events: auto; }
#overlays { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .5); }

.container.center {
    position: relative;
    z-index: 10; /* above the game canvas, which the client puts into main */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 1170px;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 15px;
    pointer-events: none;
}
.container.center > * { pointer-events: auto; }
.flex-menu { width: 920px; transform-origin: center center; }

.line { position: relative; display: flex; align-items: center; gap: 10px; margin: auto; }
#__line1 { height: 511px; }

#shop-popup {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 920px;
    height: 30px;
    padding: 0 70px;
    border-radius: 12px;
    background: #005f85;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.menu-wrapper { position: relative; }
.menu-wrapper.top {
    z-index: 501;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 300px;
    height: 510px;
    margin: 0 0 1px;
    overflow: hidden;
}

/* ---------- left: profile ---------- */
#left-menu {
    z-index: 1000;
    display: block;
    flex: none;
    height: 250px;
    margin: 0 0 10px;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: #fff;
}
.profile-header {
    position: relative;
    display: flex;
    align-items: center;
    height: 120px;
    padding: 10px;
    border-radius: 10px;
    background: #f1f5f9;
}
.profile-image {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid #c8c9d9;
    border-radius: 100%;
    background: #c8c9d9;
}
.profile-image-icon { position: relative; display: block; width: 50px; height: 50px; object-fit: cover; }
.profile-body { position: absolute; top: 43px; left: 72px; right: 9px; display: flex; flex-direction: column; align-items: flex-start; }
.profile-name {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #333136;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.progress-row { display: flex; }
.new-meter {
    position: absolute;
    top: 79px;
    left: 24px;
    width: 176px;
    height: 30px;
    border: 2px solid #54c801;
    border-radius: 6px;
}
#user-line-progress {
    position: relative;
    z-index: 1;
    display: block;
    width: 0;
    max-width: 100%;
    height: 26px;
    overflow: hidden;
    border-radius: 0 4px 4px 0;
    background: #54c801;
    transition: width .4s ease;
}
#progress-next {
    position: relative;
    top: -26px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    color: #333136;
    font-size: 11.667px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}
.agario-star-level { position: relative; top: -58px; left: -16px; z-index: 3; width: 35px; height: 35px; }
.agario-star-level img { display: block; width: 35px; height: 35px; }
.user-level {
    position: relative;
    top: -27px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35px;
    height: 20px;
    font-weight: 600;
}
#user-level { color: #fff; font-weight: 600; text-shadow: 0 0 2px #a35a00, 0 1px 1px #a35a00; }
.progress-row > button {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 45px;
    height: 50px;
    padding: 1px 6px;
    background: #f0f0f0;
    border-radius: 0;
}
.progress-row > button img { position: absolute; top: 1px; left: 6px; width: 34px; height: 32px; }
.progress-row > button span {
    position: absolute;
    top: 19.4px;
    right: -2px;
    color: #db8412;
    font-size: 13px;
    font-weight: 700;
    line-height: 18.57px;
}
#boost_timer { position: absolute; bottom: 1px; left: 0; right: 0; color: #2a652e; font-size: 9px; font-weight: 700; line-height: 10px; white-space: nowrap; }

.coins {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    height: 20px;
    border-radius: 6px;
    font-size: 16px;
}
.coins-num {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 60px;
    height: 20px;
    padding: 0 8px;
    border-radius: 3px;
    background: #b4b2b5;
}
.coins-value { position: relative; color: #fff; font-size: 12px; font-weight: 500; line-height: normal; }
.coins-num__coin { display: block; width: 16px; height: 16px; }
.coins .plus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0 0 0 5px;
    padding: 1px 6px;
    border-radius: 5px;
    background: linear-gradient(#5dd971 0, #479d48 100%);
}
.coins .plus::before, .coins .plus::after,
.skin-select__icon-cross-items::before, .skin-select__icon-cross-items::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #fff;
}
.coins .plus::before { width: 2px; height: 10px; transform: translate(-1px, -5px); }
.coins .plus::after { width: 10px; height: 2px; transform: translate(-5px, -1px); }

#offers-block { display: flex; flex-direction: column; gap: 10px; margin: 11px 0 0; }
#offers-block > div { display: flex; justify-content: space-between; align-items: center; gap: 11px; height: 37px; }
#free-chest-button, #collect-button, #shop-button, #sigma-button {
    position: relative;
    height: 37px;
    padding: 1px 6px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}
#free-chest-button, #shop-button, #collect-button { width: 120px; }
#free-chest-button, #collect-button { background: #2a652e; }
#shop-button { background: #1150c5; }
#sigma-button { width: 258px; background: #745001; }
#free-chest-button img { position: absolute; top: -5px; left: 10px; width: 42px; height: 36px; }
#shop-button img { position: absolute; top: -7px; left: 10px; width: 38px; height: 38px; }
#collect-button img { position: absolute; top: 3px; left: 10px; width: 30px; height: 30px; }
#sigma-button img { position: absolute; top: -5px; left: 44px; width: 52px; height: 36px; }
#free-chest-button > div, #shop-button > div, #collect-button > div, #sigma-button > div {
    position: relative;
    top: -1px;
    left: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 35px;
}
#sigma-button > div { left: 92px; }
#collect-button > div { gap: 2px; align-items: flex-start; font-size: 11px; }

/* the side slots hold the daily challenges and the news */
.text-block { border: 1px solid transparent; border-radius: 15px; }
#left_ad_block { height: 250px; }
#text-block { height: 200px; } /* the top list above is 50px taller so that all 10 rows fit */
.text-block .right-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 12px 14px;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
}
.panel-title { margin: 0 0 8px; color: inherit; font-size: 15px; font-weight: 700; text-align: center; }
.challenges-panel, .news-panel { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; font-size: 12px; }
.challenge-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(128, 128, 128, .14);
    color: inherit;
}
.challenge-line.done { opacity: .55; text-decoration: line-through; }
.challenge-line button { flex: none; padding: 3px 8px; border-radius: 6px; background: #286230; color: #fff; font-size: 11px; font-weight: 500; }
.challenge-progress { flex: none; font-weight: 700; white-space: nowrap; }
.news-item { padding: 6px 8px; border-radius: 8px; background: rgba(128, 128, 128, .14); color: inherit; cursor: pointer; }
.news-item b { display: block; margin-bottom: 2px; font-size: 13px; }

/* ---------- center menu ---------- */
#menu-wrapper { display: flex; align-items: center; }
.menu-wrapper-center { width: 300px; height: 511px; }
#menu.menu-center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 511px;
    padding: 20px;
    border-radius: 15px;
    background: #fff;
}
#menu.menu-center > div:first-child { display: flex; flex-direction: column; }
#center-header { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
#center-header button { padding: 0; background: none; color: inherit; font-size: 18px; font-weight: 500; line-height: 18px; text-align: center; }
#clans_and_settings { display: flex; align-items: center; gap: 14px; margin-left: auto; }
#clans_and_settings > div { width: 1px; height: 20px; background: #dedede; }
#clans_and_settings button[name="settings"] { width: 20px; height: 20px; }
#clans_and_settings svg { display: block; }

.menu-center-content { width: 240px; margin: 28px 10px 0; }
.menu__title { margin: 0 0 20px; text-align: center; }
.menu-center #title { margin: 0; color: #333136; font-size: 26px; font-weight: 700; line-height: normal; text-align: center; }
.menu-center .menu__item { margin: 28px 0; }

.menu__form-group { margin: 0 0 28px; }
.form-group__flex { display: flex; align-items: center; height: 83px; }
.form-group__flex > .form-group__row { margin: 0 17px 0 0; }
.skin-select { display: inline-block; width: 72px; height: 72px; }
.skin-select__inner { position: relative; width: 72px; height: 72px; }
.skin-select__icon-cross {
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: 2;
    width: 25px;
    height: 25px;
    border: 1px solid #5db75d;
    border-radius: 50%;
    background: #43a952;
    cursor: pointer;
}
#skin-select_remove { border-color: #f02626; background: #f02626; box-shadow: 1px 1px 3px rgba(0, 0, 0, .6); }
#skin-select_remove .skin-select__icon-cross-items { transform: rotate(45deg); }
.skin-select__icon-cross-items { position: relative; width: 23px; height: 23px; }
.skin-select__icon-cross-items::before { width: 2px; height: 13.8px; transform: translate(-1px, -6.9px); }
.skin-select__icon-cross-items::after { width: 13.8px; height: 2px; transform: translate(-6.9px, -1px); }
#skin-select_remove .skin-select__icon-cross-items::before { height: 15.2px; transform: translate(-1px, -7.6px); }
#skin-select_remove .skin-select__icon-cross-items::after { width: 15.2px; transform: translate(-7.6px, -1px); }
.skin-select__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1px solid #c8c9d9;
    border-radius: 50%;
    background-color: transparent;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 1px, #f1f1f1 2px, #f1f1f1 3px),
        repeating-linear-gradient(-45deg, transparent, transparent 1px, #f1f1f1 2px, #f1f1f1 3px);
    background-position: 0 0;
    background-size: 100% auto;
    box-shadow: 0 0 10px rgba(51, 49, 54, .25);
    cursor: pointer;
}
.skin-select__icon.has-skin .skin-select__icon-text { display: none; }
.skin-select__icon-text { color: #000; font-size: 16px; line-height: 16px; user-select: none; }
.form-group__rows { position: relative; flex: 1 1 auto; }
.form-group__rows > .form-group__row { margin: 5px 0; }
.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    border: 1px solid #a2a2a2;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    color: #555;
    font-size: 14px;
    line-height: 1.42857;
    outline: none;
}
.form-control:focus { border-color: #66afe9; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }
#password.form-control { margin: 5px 0; }

.mode-btns { display: flex; justify-content: space-between; align-items: center; gap: 6px; height: 36px; }
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 4px;
}
#play-btn { flex: 1; height: 36px; }
#play-btn:disabled, #spectate-btn:disabled { opacity: .65; cursor: wait; }
#spectate-btn { display: flex; align-items: center; width: 36px; height: 36px; padding: 0; background: none; }
#spectate-btn img { display: block; width: 36px; height: 36px; }
.sign-in-btn, .sign-in-out-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 34px;
    margin: 13px 0 0;
    border: 1px solid #c1c1c1;
    border-radius: 4px;
    background: #fff;
    color: #757575;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}
.sign-in-btn img { width: 38px; height: 18px; padding: 0 10px; object-fit: contain; }
.sign-in-out-btn { margin: 10px 0 0; border-color: #f02626; background: #f02626; color: #fff; font-weight: 500; border-radius: 6px; }

.ch-lang__items { display: flex; justify-content: center; gap: 12px; height: 32px; margin: 0; padding: 0; list-style: none; font-size: 0; line-height: 0; }
.ch-lang__btn { display: block; }
.ch-lang__flag { display: block; width: 32px; height: 32px; }
.ch-lang__btn:not(.active) .ch-lang__flag { opacity: .9; }

.flex-col { display: flex; flex-direction: column; gap: 10px; }
#tournament_link, #discord_link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    margin: 0 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
}
#tournament_link { border: 1px solid #1f1f20; background: #1f1f20; }
#tournament_link img { width: 32px; height: 32px; }
#discord_link { gap: 0; border: 1px solid #5865f2; background: #5865f2; }
#discord_link span { margin: 0 0 0 4px; color: #fff; }
/* the mod menu puts its discord buttons here; with one button it takes the whole row */
#dclinkdiv .dclinks:only-child { flex: 1; margin: 0 10px !important; }

/* ---------- right ---------- */
#right-menu { display: flex; flex-direction: column; align-items: stretch; }
.top-users { height: 300px; margin: 0 0 10px; overflow: hidden; border-radius: 15px; background: #fff; }
.top-users_buttons { display: flex; justify-content: space-between; height: 36px; border-radius: 15px 15px 0 0; }
.top-users_buttons button { width: 150px; height: 36px; padding: 1px 6px; background: #f1f5f9; color: inherit; font-weight: 700; text-align: center; }
.top-users_buttons button.active { background: #fff; }
.top-users__inner { position: relative; height: 264px; padding: 10px; overflow-y: auto; border-radius: 15px; background: #fff; }
.top-users { color: #333136; }
.top-users__inner table { width: 100%; border-collapse: collapse; color: inherit; font-size: 13px; line-height: 1.42857; }
.top-users__inner th { padding: 1px; font-weight: 700; text-align: center; }
.top-users__inner td { padding: 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top-users__inner td:first-child { width: 22px; text-align: center; }
.top-users__inner td:nth-child(2) { max-width: 150px; }
.top-users__inner td:last-child { text-align: right; }
.top-users__inner td img { width: 15px; height: 15px; margin-left: 2px; vertical-align: -3px; }

.ad_bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 738px;
    height: 100px;
    margin: 5px 91px;
    padding: 5px;
    border-radius: 15px;
    background: #fff;
    color: #333136;
    font-size: 14px;
    text-align: center;
}
.text-block .right-menu { color: #333136; }

/* ---------- death screen ---------- */
#__line2 { width: 300px; }
.menu-wrapper--stats-mode { display: flex; flex-direction: column; align-items: center; width: 300px; }
#menu.menu--stats-mode { width: 330px; padding: 20px; border-radius: 10px; background: #fff; color: #333136; }
.menu--stats-mode .menu__title { margin: 0 0 20px; text-align: center; }
.menu--stats-mode #title { margin: 0; color: inherit; font-size: 26px; font-weight: 700; line-height: normal; text-align: center; }
#menu__bonus { margin: 0 0 10px; text-align: center; }
.stats__inner { position: relative; }
.stats__ver { position: absolute; top: 42px; width: 140px; height: .5px; background: #bfbfbf; }
.stats__ver-l { left: 0; }
.stats__ver-r { left: 150px; }
.stats__items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 5px; }
.stats__item { position: relative; }
.stats__item-title, .stats__item-value { display: block; color: inherit; line-height: 16px; text-align: center; }
.stats__item-title { font-weight: 500; }
.stats__hor { position: absolute; top: 0; left: 145px; width: .5px; height: 32px; background: #bfbfbf; }
.stats-btn__inner { margin: 20px 0 0; }
.stats-btn__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    margin: 0 0 15px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #3966d1;
    color: #fff;
    font-weight: 500;
}
.stats-btn__row { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 0 5px; color: inherit; font-size: 16px; font-weight: 500; }
.stats-btn__share-btn { width: 20px; height: 20px; padding: 0; background: none; }
.stats-btn__share-btn svg { display: block; }
.ad-block, .ad-block-left, .ad-block-right { display: none; }

/* ---------- chat ---------- */
.chatblock { position: fixed; left: 0; bottom: 0; z-index: 300; width: 100%; height: 0; }
.chatblock__button {
    position: fixed;
    left: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    padding: 1px 6px;
    border-radius: 10px 1px 1px 5px;
    background: #e37955;
}
.chatblock__textarea {
    position: fixed;
    left: 46px;
    bottom: 10px;
    width: 400px;
    height: 30px;
    padding: 4px;
    border: none;
    border-radius: 0 10px 10px 0;
    background: #444;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.chatblock__scrollbar { display: none; }
.chatblock__scrollbar-thumb { position: absolute; left: 0; width: 6px; border-radius: 3px; background: #fc7200; }

/* ---------- top right links ---------- */
#menu-links {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 0 0 0 10px;
    background: #fff;
    color: #333;
    text-align: center;
}
#menu-links .link, #menu-links .link_btn { padding: 0; background: none; color: #365c7c; font-size: 14px; font-family: inherit; }
#menu-links .link_btn { display: inline-block; }

/* ---------- ctrl modals (how to play, settings) ---------- */
.ctrl-modal--hidden { display: none; }
.ctrl-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, .5);
}
.ctrl-modal__modal { margin: 30vh 0 35vh; padding: 20px 20px 40px; border-radius: 15px; background: #fff; }
#cm_modal__settings .ctrl-modal__modal { width: 330px; }
#cm_modal__rules .ctrl-modal__modal { width: 440px; max-width: calc(100% - 20px); margin-top: 20vh; padding: 15px; }
.ctrl-modal__header { display: flex; }
.ctrl-modal__title { flex: 1; margin: 10px 0; color: #333; font-size: 24px; font-weight: 500; line-height: 1.1; text-align: center; }
.ctrl-modal__close { display: flex; align-items: center; justify-content: center; width: 16px; padding: 0; background: none; }
.ctrl-modal__content { color: #333; }
#rules-content h5 { margin: 10px 0 4px; font-size: 15px; }
#rules-content ul { margin: 0; padding-left: 18px; }
.ctrl-modal__footer { padding: 10px 0 0; text-align: center; }
.btn-success { height: 36px; background: #286230; border-color: #286230; border-radius: 6px; color: #fff; font-size: 14px; font-weight: 500; }

.ctrl-modal .menu__item { margin-top: 20px; margin-bottom: 20px; }
.ctrl-modal .menu__item:last-child { margin-bottom: 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(50% - 10px), 1fr)); gap: 5px 10px; margin: 0 0 10px; padding: 0; list-style: none; }
#settings > .checkbox-grid { grid-template-columns: .9fr 1.1fr; }
.checkbox-grid li { overflow: hidden; line-height: 20px; }
.checkbox-grid > input, .checkbox-grid > label { line-height: 20px; }
#settings label { margin-right: 10px; user-select: none; }

/* pretty-checkbox 3.0 (MIT, Lokesh Rajendran), the parts the settings use */
.pretty * { box-sizing: border-box; }
.pretty { position: relative; display: inline-block; margin-right: 1em; white-space: nowrap; line-height: 1; }
.pretty input { position: absolute; top: 0; left: 0; z-index: 2; min-width: 1em; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.pretty .state label { position: initial; display: inline-block; min-width: calc(1em + 2px); margin: 0; font-weight: 400; text-indent: 1.5em; }
.pretty .state label::before, .pretty .state label::after {
    content: "";
    position: absolute;
    top: calc(-108% + 1em);
    left: 0;
    z-index: 0;
    display: block;
    box-sizing: border-box;
    width: calc(1em + 2px);
    height: calc(1em + 2px);
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0);
}
.pretty .state label::before { border-color: #bdc3c7; }
.pretty.p-svg .state .svg {
    position: absolute;
    top: calc(-108% + 1em);
    left: 0;
    z-index: 1;
    width: calc(1em + 2px);
    height: calc(1em + 2px);
    border: 1px solid rgba(255, 255, 255, 0);
    font-size: 1em;
    line-height: normal;
    text-align: center;
    opacity: 0;
}
.pretty.p-svg .state svg { display: flex; flex: 1 1 0%; justify-content: center; align-items: center; width: 100%; height: 100%; margin: 0; line-height: 1; text-align: center; }
.pretty.p-svg input:checked ~ .state .svg { opacity: 1; }
.pretty.p-round .state label::before, .pretty.p-round .state label::after { border-radius: 100%; }
.pretty.p-smooth .svg, .pretty.p-smooth label::before, .pretty.p-smooth label::after { transition: .5s; }
.pretty.p-smooth input:checked + .state label::after { transition: .3s; }
.pretty.p-smooth input:checked + .state .svg { animation: pretty-zoom .2s ease; }
.pretty input:checked ~ .state.p-success label::after { background-color: #5cb85c !important; }
.pretty input:checked ~ .state.p-success .svg { color: #fff; stroke: #fff; }
@keyframes pretty-zoom { 0% { opacity: 0; transform: scale(0); } }

/* ---------- alert modals ---------- */
.connecting {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9800; /* above the shop (9500), so windows opened from the shop show on top */
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}
.connecting__content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 440px;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
}
.connecting__content:not(:has(> .alert)) { padding: 24px 20px; border-radius: 15px; background: #fff; color: #333136; }
.connecting__content h2 { margin: 0 0 14px; color: #333136; font-size: 22px; font-weight: 500; text-align: center; }
.alert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15.5px;
    padding: 30px 20px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #fff;
}
.alert-danger { color: #d32b27; }
.alert-success { color: #2a652e; }
.mb-0 { margin-bottom: 0; }
.connecting-header { position: relative; display: flex; align-items: center; }
.alert-heading { display: flex; align-items: center; gap: 6px; margin: 0 auto; font-size: 20px; font-weight: 500; }
.alert-danger .alert-heading { color: #e04644; }
.alert p { color: #333136; font-size: 16px; font-weight: 500; text-align: center; }
.close-connecting-button { position: absolute; top: 10px; right: 14px; color: #333136; font-size: 18px; cursor: pointer; }
.alert .close-connecting-button { top: -18px; right: -6px; color: #999; font-size: 16px; }
.alert-danger .close-connecting-button { display: none; }
.free-coins-body { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #333136; text-align: center; }
.free-coins-body > div { display: flex; flex-direction: column; align-items: center; }
.free-coins-body p { display: flex; align-items: center; gap: 6px; margin: 0; }
#free-coins-value, #reward-coins-value, #challenge-coins-value { color: #db8412; font-size: 26px; font-weight: 700; }
.loading-bar { height: 6px; overflow: hidden; border-radius: 3px; background: #eee; }
.loading-bar-progress { width: 40%; height: 100%; background: #286230; animation: loading 1.2s ease-in-out infinite; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
#connecting { z-index: 8000; background: transparent; pointer-events: none; }
#connecting .connecting__content { top: 24px; width: 240px; transform: translateX(-50%); pointer-events: auto; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
#connecting .alert { padding: 14px 18px; gap: 10px; color: #333136; }
#connecting .alert-heading { font-size: 16px; }

/* clans */
#clans-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; margin: 0 0 12px; overflow-y: auto; }
.clans-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #f1f5f9; }
.clans-item > div > b { display: block; }
.clans-item > div > span { font-size: 12px; opacity: .75; }
.clans-item button, #clans-input button, .clan-action { padding: 6px 12px; border-radius: 6px; background: #286230; color: #fff; font-weight: 500; }
#clans-input { display: flex; gap: 6px; }
#clans-input input { flex: 1; height: 34px; padding: 6px 12px; border: 1px solid #a2a2a2; border-radius: 4px; outline: none; }
#clan-members { display: flex; flex-direction: column; gap: 4px; max-height: 260px; margin: 8px 0; overflow-y: auto; }
.member-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #f1f5f9; }
.member-index { width: 18px; font-weight: 700; }
.member-desc { flex: 1; }
.member-desc > p { margin: 0; }
.member-desc > p:first-child { font-weight: 700; }
.member-level { font-size: 11px; opacity: .7; }
.member-online { width: 8px; height: 8px; border-radius: 50%; background: #b23939; }
.member-online.on { background: #3db239; }
#clan-requests { display: flex; flex-direction: column; gap: 4px; }
#clan-leave { margin: 12px 0 0; text-align: center; }
#clan-leave > div { display: inline-block; padding: 6px 14px; border-radius: 6px; background: #f02626; color: #fff; font-weight: 500; cursor: pointer; }
#leave-buttons, #assign-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
#leave-buttons button, #assign-buttons button { padding: 8px 14px; border-radius: 6px; color: #fff; font-weight: 500; }
.leave-cancel { background: #777; }
.leave-ok, .btn-expel { background: #f02626; }
.btn-member { background: #607d8b; }
.btn-elder { background: #2a652e; }
.btn-coleader { background: #6a48cd; }

/* ---------- shop ---------- */
#shop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9500;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}
#shop-area {
    display: flex;
    flex-direction: column;
    width: 1020px;
    max-width: calc(100% - 20px);
    height: 676px;
    max-height: calc(100% - 20px);
    overflow: hidden;
    border-radius: 10px;
    background: #2e5bc5;
}
#shop-header { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 12.5px 20px; background: #2e5bc5; }
#shop-header-title { color: #fff; font-size: 22px; font-weight: 500; }
#shop-header-buttons .coins { position: relative; top: 0; right: 0; height: 25px; }
#shop-header-buttons .coins-num { height: 25px; padding: 0 8px; border-radius: 5px; background: rgba(0, 0, 0, .3); }
#shop-header-buttons .coins-value { margin: 0 0 0 4px; font-size: 16px; }
#shop-header-buttons .coins-num__coin { width: 20px; height: 20px; }
#shop-header-buttons .plus { width: 31px; height: 25px; background: #43a952; }
#shop-header-buttons .close-btn { margin: 0 0 0 20px; padding: 1px 6px; background: transparent; }
#shop-header-buttons .close-btn img { display: block; }
#shop-content { display: flex; flex: 1; min-height: 0; padding: 30px; background: #fff; }
#shop-nav {
    display: flex;
    flex-direction: column;
    flex: none;
    align-self: flex-start;
    gap: 4px;
    width: 182px;
    margin: 0 10px 0 0;
    border-radius: 10px;
    background: #f1f5f9;
}
#shop-nav button {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 182px;
    height: 40px;
    padding: 1px 6px 1px 12px;
    border-radius: 8px;
    background: transparent;
    color: #333136;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}
#shop-nav button.active { background: rgba(46, 91, 197, .25); box-shadow: 0 0 0 2px #2e5bc5 inset; }
#shop-nav button .coins-num__coin { width: 20px; height: 20px; flex: none; }
#shop-tab-body { flex: 1; min-width: 0; overflow-y: auto; border-radius: 10px; background: #f1f5f9; }
.shop-tab { display: none; padding: 20px; }
.shop-tab.active { display: block; }
#shop-skins-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0 0 34px;
    padding: 0 0 25px;
    border-bottom: 1px solid #98aae2;
}
#shop-skins-buttons button { width: 131px; height: 41px; padding: 1px 6px; border-radius: 20px; color: #fff; font-size: 18px; font-weight: 700; text-align: center; }
#shop-buttons-free { background: linear-gradient(#7cf9ae 0%, #26c064 100%); }
#shop-buttons-premium { background: linear-gradient(#ffde7d 0%, #ffc826 100%); }
#shop-buttons-clan { display: none; background: linear-gradient(#ff8a82 0%, #de493e 100%); }
#shop-buttons-level { background: linear-gradient(#a687ff 0%, #6a48cd 100%); }
#shop-buttons-owned { background: linear-gradient(#97e0ff 0%, #26b1ed 100%); }
#shop-skins-buttons button.active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #2e5bc5; }
.shop-scrollbar-wrap { position: relative; margin: 0 18px 0 0; }
.tab-content { display: none; flex-wrap: wrap; gap: 9px; }
.tab-content.active { display: flex; }
.skin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 140px;
    padding: 12px 8px 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #333136;
    text-align: center;
    cursor: pointer;
}
.skin-card:hover { border-color: #98aae2; }
.skin-card.selected { border-color: #26c064; }
.skin-card img, .skin-card .skin-anim { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background-color: #f1f5f9; box-shadow: 0 0 10px rgba(51, 49, 54, .25); }
/* animated skins: a horizontal strip of square frames (tools/make-skins.js), played one frame at a time */
.anim-skin {
    background-size: calc(var(--frames) * 100%) 100% !important;
    background-repeat: no-repeat !important;
    animation: anim-skin var(--frame-time, 1.33s) steps(var(--frames), jump-none) infinite;
}
@keyframes anim-skin { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.skin-card .skin-name { max-width: 100%; overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.skin-card .skin-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 90px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #286230;
    color: #fff;
    font-weight: 500;
}
.skin-card .skin-price .coin-icon { width: 16px; height: 16px; }
.skin-card .skin-price:empty { display: none; }
.shop-empty { padding: 20px; color: inherit; text-align: center; opacity: .7; }
.shop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
.shop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 10px;
    background: linear-gradient(#97e0ff 0%, #26b1ed 100%);
    color: #fff;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
.shop-card.orange { background: linear-gradient(#ffde7d 0%, #ffc826 100%); }
.shop-card.purple { background: linear-gradient(#a687ff 0%, #6a48cd 100%); }
.shop-card.green { background: linear-gradient(#7cf9ae 0%, #26c064 100%); }
.shop-card b { font-size: 16px; }
.shop-card .big { font-size: 36px; line-height: 48px; }
.shop-card .price { display: flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 6px; background: #286230; font-weight: 700; }
.shop-note { margin: 10px 0; color: #333136; font-size: 13px; opacity: .8; }
.coin-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.22em; object-fit: contain; }
.shop-card .big .coin-icon { width: 48px; height: 48px; vertical-align: middle; }

/* ---------- updates ---------- */
#updates-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9500;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}
#updates { display: flex; flex-direction: column; width: 520px; max-width: calc(100% - 20px); max-height: 80vh; overflow: hidden; border-radius: 15px; background: #fff; }
#updates-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #333; font-size: 24px; font-weight: 500; }
#updates-header img { cursor: pointer; }
#updates-scroll { overflow-y: auto; padding: 0 20px 20px; }
#updates-feed > div { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #eee; color: #333136; }
#updates-feed h3 { margin: 0 0 4px; font-size: 18px; }
#updates-feed i { font-size: 12px; opacity: .7; }

/* ---------- tournament page ---------- */
#tournament-info { display: flex; flex-direction: column; gap: 8px; text-align: center; }
#tournament-info button { padding: 8px 16px; border-radius: 6px; }

/* ---------- KURMAY banner above the main menu (animated, assets/img/kurmay-banner.webp / .gif) ---------- */
.kurmay-banner { display: flex; justify-content: center; height: 100px; margin: -20px auto 6px; pointer-events: none; user-select: none; }
.kurmay-banner img { display: block; width: 613px; height: 100px; }

/* ---------- shop: mass boost and mystery potions ---------- */
.shop-card.teal { background: linear-gradient(#7ef0e6 0%, #19b5a6 100%); }
.shop-card.pink { background: linear-gradient(#ffb3d9 0%, #e8479a 100%); }
.shop-card .art { width: 96px; height: 96px; display: block; }
.shop-card.locked { opacity: .55; cursor: default; }
.potion-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.potion-slot { min-height: 150px; border-radius: 12px; border: 2px dashed #b9b3c7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; color: #333136; font-weight: 700; text-align: center; }
.potion-slot.filled { border-style: solid; border-color: #a855f7; background: #f6efff; }
.potion-slot button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 700; cursor: pointer; }
.potion-slot button[disabled] { background: #9ca3af; cursor: default; }
.potion-slot .art { width: 64px; height: 64px; }
#mass-tab .shop-note, #potions-tab .shop-note { color: #d6d1e2; opacity: 1; }
.potion-slot { color: #d6d1e2; border-color: #5b5470; }
.potion-slot.filled { color: #2a1640; }

/* ---------- design A: timer bar under the banner ---------- */
.kurmay-timers { display: flex; justify-content: center; align-items: center; gap: 10px; height: 44px; margin: 0 auto 50px; font-family: Arial, sans-serif; }
.kt-pill { display: flex; align-items: center; gap: 10px; height: 40px; box-sizing: border-box; padding: 0 16px; border-radius: 999px; border: 1px solid #2a2540; background: rgba(21, 18, 31, .92); color: #edeaf5; }
.kt-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.kt-dot.on { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.kt-label { font-size: 12px; color: #a49db8; letter-spacing: .04em; }
.kt-value { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.kt-small { font-size: 12px; font-weight: 700; }
.kt-bar { width: 90px; height: 6px; border-radius: 999px; background: #2a2540; overflow: hidden; }
.kt-bar > div { width: 0; height: 100%; background: #22c55e; transition: width .4s; }
.kt-title { margin: 0 0 8px; font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .04em; color: #edeaf5; }

/* ---------- design A: purple panels ---------- */
#left-menu, #menu.menu-center, .top-users, .top-users__inner, #text-block, #left_ad_block { background: #15131f !important; color: #edeaf5 !important; }
#left-menu, #menu.menu-center, .top-users, #text-block { border: 1px solid #2a2540 !important; border-radius: 16px !important; }
#text-block .right-menu { color: #edeaf5 !important; padding: 14px; overflow-y: auto; height: 100%; box-sizing: border-box; }
.top-users_buttons { background: #0f0d18; border-radius: 16px 16px 0 0; padding: 3px; box-sizing: border-box; gap: 4px; }
.top-users_buttons button { background: transparent !important; color: #a49db8 !important; border-radius: 10px; font-family: Rajdhani, Arial, sans-serif; font-size: 16px; letter-spacing: .04em; }
.top-users_buttons button.active { background: #2d2550 !important; color: #edeaf5 !important; }
.top-users, .top-users__inner table { color: #edeaf5 !important; }
.top-users__inner tr { border-bottom: 1px solid #221d34; }
.menu-center #title { color: #ede9fe !important; font-family: Rajdhani, Arial, sans-serif; letter-spacing: .06em; }
#center-header button, #clans_and_settings button { color: #edeaf5 !important; }
#center-header svg path { fill: #edeaf5; }
#profile-name, .coins-value, #progress-next { color: #edeaf5 !important; }
#nick, #gamemode { background: #0f0d18 !important; color: #edeaf5 !important; border: 1px solid #3a3256 !important; border-radius: 10px !important; }
#play-btn { background: linear-gradient(180deg, #8b5cf6, #6d28d9) !important; border: 0 !important; border-radius: 12px !important; color: #fff !important; font-family: Rajdhani, Arial, sans-serif !important; font-weight: 700 !important; font-size: 22px !important; letter-spacing: .12em; height: 44px !important; box-shadow: 0 8px 24px rgba(124, 58, 237, .35); }
#spectate-btn { background: #1d1830 !important; border: 1px solid #3a3256 !important; border-radius: 12px !important; }
#signInBtn { background: #1d1830 !important; color: #edeaf5 !important; border: 1px solid #3a3256 !important; }
#tournament_link { background: #1d1830 !important; border-color: #3a3256 !important; }
#challenges-panel .challenge-line { color: #edeaf5; }

/* ---------- Obur Pass window ---------- */
.op-overlay { align-items: center; justify-content: center; background: rgba(5, 3, 12, .72) !important; }
.op-panel { position: relative; width: 640px; max-width: calc(100vw - 32px); max-height: 88vh; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid #3a3256; background: linear-gradient(180deg, #1c1631 0%, #110e1c 100%); color: #edeaf5; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); font-family: Arial, sans-serif; }
.op-head { display: flex; flex-direction: column; align-items: center; padding: 14px 20px 8px; }
.op-crown { width: 72px; height: 45px; margin-top: -40px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.op-head h2 { margin: 4px 0 0; font-family: Rajdhani, Arial, sans-serif; font-size: 32px; letter-spacing: .06em; }
.op-season { font-size: 13px; color: #a49db8; }
.op-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #2a2540; color: #edeaf5; font-size: 18px; cursor: pointer; }
.op-body { padding: 8px 20px 18px; overflow-y: auto; }
.op-top { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; margin-bottom: 12px; }
.op-progress { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #0f0d18; border: 1px solid #2a2540; }
.op-star { position: relative; width: 54px; height: 54px; flex: none; }
.op-star b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 4px; font-size: 16px; color: #3b2300; }
.op-barwrap { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #c9c3d8; }
.op-bar { height: 14px; border-radius: 999px; background: #2a2540; overflow: hidden; }
.op-bar > div { height: 100%; background: linear-gradient(90deg, #fbbf24, #fde68a); }
.op-buy { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #12301e; border: 1px solid #1f6b3a; text-align: center; }
.op-buy button { min-height: 44px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #22c55e, #15803d); color: #fff; font-family: Rajdhani, Arial, sans-serif; font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.op-buy button span { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.op-left-wrap { font-size: 12px; color: #bbf7d0; }
.op-note { margin: 10px 0; font-size: 12px; color: #a49db8; text-align: center; }
.op-chests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.op-chest { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; background: #0f0d18; border: 1px solid #2a2540; font-size: 12px; }
.op-chest b { font-size: 16px; }
.op-chest button { min-height: 36px; width: 100%; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 700; cursor: pointer; }
.op-chest button[disabled] { background: #3a3256; color: #8f88a8; cursor: default; }
.op-cols { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 0 4px 6px; font-size: 11px; color: #a49db8; text-transform: uppercase; letter-spacing: .06em; }
.op-list { display: flex; flex-direction: column; gap: 8px; }
.op-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.op-tier { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #2a2540; font-family: Rajdhani, Arial, sans-serif; font-size: 22px; font-weight: 700; color: #a49db8; }
.op-row.open .op-tier { background: #fbbf24; color: #3b2300; }
.op-reward { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 10px; border-radius: 12px; border: 1px solid #2a2540; }
.op-reward.free { background: #142235; }
.op-reward.pass { background: #2b1d0e; border-color: #6b4c12; }
.op-reward.locked { opacity: .55; }
.op-rtext { flex: 1; font-size: 13px; font-weight: 700; }
.op-claim { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #22c55e; color: #04170b; font-weight: 800; cursor: pointer; }
.op-tag { font-size: 11px; color: #c9c3d8; white-space: nowrap; }
.op-tag.ok { color: #86efac; font-weight: 700; }
.op-skin { width: 44px; height: 44px; border-radius: 50%; background-size: auto 100%; background-position: 0 0; flex: none; }

/* the second nickname row (multi) under Tag + nickname: let the box grow instead of overflowing */
.form-group__flex { height: auto !important; min-height: 83px; }
.form-group__rows { height: auto !important; }

/* ---------- menu additions (obur.js "Menu additions"): taller columns, event, streak, last game, servers,
   Obur Pass bar, achievements, friends ---------- */
#__line1 { height: 600px; }
.menu-wrapper.top { height: 600px; }
.menu-wrapper-center, #menu.menu-center { height: 600px; }
#left_ad_block { height: 340px; display: flex; flex-direction: column; gap: 10px; background: transparent !important; }
#text-block { height: 290px; }
.form-group__row:has(> #gamemode) { display: none; }
.menu-center .menu__item { margin: 14px 0; }
.menu__title { margin: 0 0 8px; }
.menu-center-content { margin-top: 18px; }
.menu__form-group { margin: 0 0 10px; }
.sign-in-btn { margin-top: 8px; }

.kurmay-timers { gap: 8px; }
.kt-pill { padding: 0 12px; gap: 7px; }
.kt-label { white-space: nowrap; font-size: 11px; }
.kt-value { font-size: 20px; }
.kt-bar { width: 64px; }
.kt-small { white-space: nowrap; }
/* the menu above the chat box where they meet on small screens (the chat is still usable on its left part) */
.container.center { z-index: 320; }
.kt-event { gap: 8px; border-color: #5b4a9a; background: rgba(40, 26, 70, .95); }
.kt-event.on { border-color: #8b5cf6; background: linear-gradient(90deg, #3b1d6e, #5b2a86); box-shadow: 0 0 18px rgba(139, 92, 246, .35); }
.kt-ev-title { font-size: 12.5px; font-weight: 700; color: #edeaf5; white-space: nowrap; }
.kt-ev-left { font-size: 19px; color: #fde68a; }

.side-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid #2a2540; background: #15131f; color: #edeaf5; box-sizing: border-box; }
#last-box { flex: 1; min-height: 0; }
.sb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sb-title { font-family: Rajdhani, Arial, sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.sb-sub { font-size: 11.5px; color: #a49db8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-empty { margin: 6px 0; font-size: 12px; line-height: 1.45; color: #a49db8; text-align: center; }
.streak-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px; padding: 0; border-radius: 10px; border: 1px solid #2a2540; background: #1b1729; color: #edeaf5; font-family: Arial, sans-serif; }
.sd-day { font-size: 9.5px; color: #a49db8; white-space: nowrap; }
.sd-reward { font-size: 11px; font-weight: 700; }
.sd.got { background: #1c2a1f; border-color: #2f5236; }
.sd.got .sd-reward { color: #4ade80; }
.sd.ready { border: 2px solid #a78bfa; background: #2d2550; cursor: pointer; animation: sd-pulse 1.6s ease-in-out infinite; }
.sd.ready .sd-reward { color: #fde68a; }
.sd:nth-child(7) .sd-reward { color: #f5b83d; font-size: 10px; }
@keyframes sd-pulse { 50% { box-shadow: 0 0 12px rgba(167, 139, 250, .6); } }
.last-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lg-tile { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; background: #1b1729; }
.lg-tile span { font-size: 11px; color: #a49db8; }
.lg-tile b { font-family: Rajdhani, Arial, sans-serif; font-size: 21px; font-variant-numeric: tabular-nums; color: #edeaf5; }
.lg-tile b.gold { color: #f5b83d; }
.lg-tile b.xp { color: #a78bfa; }

.server-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
.srv { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 48px; padding: 6px 9px; border-radius: 12px; border: 1px solid #3a3256; background: #1d1830; color: #edeaf5; text-align: left; cursor: pointer; font-family: Arial, sans-serif; }
.srv b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.srv span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #a49db8; white-space: nowrap; }
.srv.active { border: 2px solid #a78bfa; background: #2d2550; }
.srv-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.srv-dot.off { background: #6b7280; }

.pass-bar { display: flex; align-items: center; gap: 7px; width: 240px; min-height: 34px; margin: 10px 0 0; padding: 5px 9px; box-sizing: border-box; border-radius: 10px; border: 1px solid #4d3a12; background: #1f1a10; color: #edeaf5; cursor: pointer; font-family: Arial, sans-serif; }
.pb-name { font-size: 11.5px; font-weight: 700; color: #f5b83d; white-space: nowrap; }
.pb-track { flex: 1; min-width: 30px; height: 7px; border-radius: 999px; background: #2d2414; overflow: hidden; }
.pb-fill { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #d97706, #f5b83d); transition: width .4s; }
.pb-xp { font-size: 10.5px; color: #d6c39a; white-space: nowrap; }
.pb-ready { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: #f5b83d; color: #1a1300; white-space: nowrap; }

.ach-strip { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 240px; min-height: 36px; margin: 8px 0 0; padding: 0; background: none; border: 0; color: #a49db8; cursor: pointer; font-family: Arial, sans-serif; }
.ach-count { font-size: 11.5px; white-space: nowrap; }
.ach-badges { display: flex; gap: 4px; }
.ach-b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; font-family: Rajdhani, Arial, sans-serif; font-size: 10px; font-weight: 700; flex: none; }
.ach-b.t1 { background: #1c2a1f; border: 1px solid #2f5236; color: #4ade80; }
.ach-b.t2 { background: #2d2550; border: 1px solid #5b4a9a; color: #c4b5fd; }
.ach-b.t3 { background: #2a2010; border: 1px solid #6b4c12; color: #f5b83d; }
.ach-b.locked { background: #16131f; border: 1px solid #2a2540; color: #5d5675; }
.ach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ach-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid #2a2540; background: #0f0d18; opacity: .7; }
.ach-item.ok { opacity: 1; border-color: #3a3256; background: #1b1729; }
.ach-item .ach-b { width: 38px; height: 38px; font-size: 12px; }
.ach-item div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ach-item b { font-size: 13px; }
.ach-item span { font-size: 11.5px; color: #a49db8; }
.ach-item em { font-style: normal; font-size: 12px; font-weight: 700; color: #f5b83d; }
.ach-item.ok em { color: #4ade80; }

.friends-panel { display: flex; flex-direction: column; gap: 6px; }
.fr-head { display: flex; align-items: center; gap: 8px; }
.fr-head .kt-title { margin: 0; }
.fr-count { flex: 1; font-size: 11px; color: #a49db8; white-space: nowrap; }
.fr-add { position: relative; width: 36px; height: 36px; margin-left: auto; border: 1px solid #3a3256; border-radius: 10px; background: #1d1830; color: #edeaf5; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fr-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; box-sizing: border-box; }
.fr-list { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.fr-row { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.fr-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #5d5675; }
.fr-dot.play { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.fr-dot.menu { background: #f5b83d; }
.fr-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; color: #edeaf5; font: 700 13px Arial, sans-serif; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-name small { font-weight: 400; font-size: 10.5px; color: #a49db8; }
.fr-row > button:not(.fr-name), .km-row button { min-height: 30px; padding: 0 10px; border: 1px solid #3a3256; border-radius: 8px; background: #2d2550; color: #edeaf5; font: 700 12px Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.km-row button.ghost { background: #1d1830; color: #c9c3d8; }
.fr-row > button:disabled, .km-row button:disabled { opacity: .6; cursor: default; }

.km-panel { width: 520px; }
.km-body { display: flex; flex-direction: column; gap: 8px; }
.km-search { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #a49db8; }
.km-search input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #3a3256; background: #0f0d18; color: #edeaf5; font-size: 15px; }
.km-sub { margin: 10px 0 0; font-family: Rajdhani, Arial, sans-serif; font-size: 17px; letter-spacing: .04em; color: #edeaf5; }
.km-list { display: flex; flex-direction: column; gap: 6px; }
.km-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #0f0d18; border: 1px solid #2a2540; }
.km-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; font-size: 14px; }
.km-name small { font-weight: 400; font-size: 11.5px; color: #a49db8; }
.km-row em { font-style: normal; font-size: 12px; color: #86efac; }

.invite-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9900; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; border: 1px solid #8b5cf6; background: #1c1631; color: #edeaf5; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font: 14px Arial, sans-serif; }
.invite-toast.hide { display: none; }
.invite-toast button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 700; cursor: pointer; }
.invite-toast .it-close { background: #2a2540; padding: 0 12px; }

/* ---------- top lists: three tabs, names open the profile card, clan war note ---------- */
.top-users_buttons button { width: auto !important; flex: 1; font-size: 15px !important; }
.tu-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-name:hover { color: #c4b5fd; text-decoration: underline; }
.cw-note { margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: #a49db8; text-align: center; }
/* the player of the day in the bar above the menu */
#pod-wrap { display: inline-flex; align-items: center; }
.pod { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); cursor: pointer; }
.pod.hide { display: none; }
.pod b { color: #fde68a; }
.pod small { font-weight: 400; opacity: .85; }

/* ---------- profile card ---------- */
.pc-panel { width: 460px; }
.pc-panel .op-body { padding-top: 22px; }
.pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pc-avatar { width: 72px; height: 72px; border-radius: 50%; border: 2px solid #5b4a9a; background: #2d2550; object-fit: cover; flex: none; }
.pc-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-who h2 { margin: 0; font-family: Rajdhani, Arial, sans-serif; font-size: 28px; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-who h2.gold { color: #f5b83d; }
.pc-sub { font-size: 12px; color: #a49db8; }
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #2a2540; font-size: 11.5px; color: #c9c3d8; }
.pc-tag.gold { background: #2a2010; color: #f5b83d; }
.pc-tag.ok { background: #1c2a1f; color: #86efac; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pc-actions { display: flex; justify-content: center; margin-top: 14px; min-height: 10px; }
.pc-add { min-height: 44px; padding: 0 22px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; font: 700 15px Arial, sans-serif; cursor: pointer; }

/* ---------- skin preview room ---------- */
.skin-card { position: relative; }
.skin-eye { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 13, 24, .75); color: #edeaf5; cursor: pointer; opacity: .85; }
.skin-eye:hover { opacity: 1; background: #7c3aed; }
.sp-panel { width: 560px; overflow: hidden; }
.sp-stage { position: relative; height: 330px; display: flex; align-items: center; justify-content: center; overflow: hidden;
    background-color: #f2f3f7; background-image: linear-gradient(#d9dbe3 1px, transparent 1px), linear-gradient(90deg, #d9dbe3 1px, transparent 1px); background-size: 40px 40px; }
.sp-food { position: absolute; inset: 0; background-image: radial-gradient(circle, #ef4444 5px, transparent 6px), radial-gradient(circle, #22c55e 5px, transparent 6px), radial-gradient(circle, #3b82f6 5px, transparent 6px), radial-gradient(circle, #eab308 5px, transparent 6px);
    background-size: 170px 130px, 210px 160px, 150px 190px, 240px 110px; background-position: 20px 30px, 90px 70px, 140px 10px, 40px 90px; opacity: .8; }
.sp-cell { --sp-size: 200px; position: relative; width: var(--sp-size); height: var(--sp-size); border-radius: 50%; background-color: #7c3aed;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, .18), 0 18px 40px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; transition: width .3s, height .3s; }
.sp-rot { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.sp-cell.spin .sp-rot { animation: sp-spin 8s linear infinite; }
.sp-skin { width: 100%; height: 100%; background-size: auto 100%; background-position: 0 0; background-repeat: no-repeat; }
.sp-nick { position: relative; }
.sp-nick { font: 700 22px Ubuntu, Arial, sans-serif; color: #fff; text-shadow: 0 0 4px #000, 0 0 4px #000; pointer-events: none; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-info { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 20px 20px; }
.sp-info h2 { margin: 0; font-family: Rajdhani, Arial, sans-serif; font-size: 28px; letter-spacing: .04em; }
.sp-controls { display: flex; gap: 8px; }
.sp-controls button { min-height: 36px; padding: 0 14px; border: 1px solid #3a3256; border-radius: 10px; background: #1d1830; color: #c9c3d8; font: 600 13px Arial, sans-serif; cursor: pointer; }
.sp-controls button.on { background: #2d2550; color: #edeaf5; border-color: #8b5cf6; }
.sp-action { min-height: 46px; min-width: 220px; padding: 0 22px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #22c55e, #15803d); color: #fff; font: 700 16px Arial, sans-serif; cursor: pointer; }
.sp-action:disabled { background: #3a3256; color: #a49db8; cursor: default; }

/* the gift box: a picture of each thing won above the text */
.gift-icons { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 18px; margin: 6px 0 12px; }
.gift-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; animation: gift-pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.gift-item:nth-child(2) { animation-delay: .12s; }
.gift-item:nth-child(3) { animation-delay: .24s; }
.gift-item:nth-child(4) { animation-delay: .36s; }
.gift-item img, .gift-item svg { display: block; filter: drop-shadow(0 4px 12px rgba(245, 184, 61, .35)); }
.gift-item b { font-size: 13px; font-weight: 700; color: #fde68a; white-space: nowrap; }
.gift-skin { display: block; width: 64px; height: 64px; border-radius: 50%; background-size: auto 100%; background-position: 0 0; box-shadow: 0 0 0 3px #a78bfa, 0 4px 14px rgba(167, 139, 250, .5); }
.gift-emoji { display: block; font-size: 52px; line-height: 1; }
.gift-item .ach-b { width: 58px; height: 58px; border-radius: 16px; font-size: 16px; }
@keyframes gift-pop { from { opacity: 0; transform: scale(.4) translateY(10px); } }

/* ---------- server picker: the picked server in the menu, all of them in a window (obur.js SERVER_INFO) ---------- */
.server-cards { display: block; }
.srv-current { flex-direction: row; align-items: center; gap: 9px; width: 100%; min-height: 50px; border: 2px solid #a78bfa; background: #2d2550; }
.srv-current .srv-emoji { font-size: 24px; line-height: 1; }
.srv-current .srv-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; min-width: 0; }
.srv-change { flex: none; font-size: 10.5px; font-weight: 700; color: #c4b5fd; }
.sv-panel { width: 600px; }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 4px 0 8px; }
.sv-card { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 170px; padding: 14px 10px 12px; border-radius: 16px; border: 1px solid #3a3256; background: #1d1830; color: #edeaf5; text-align: center; cursor: pointer; font-family: Arial, sans-serif; transition: transform .12s, border-color .12s; }
.sv-card:hover { transform: translateY(-2px); border-color: #8b5cf6; }
.sv-card.active { border: 2px solid #a78bfa; background: #2d2550; }
.sv-emoji { font-size: 36px; line-height: 1.1; }
.sv-card b { font-size: 13.5px; }
.sv-card em { font-style: normal; font-size: 11px; font-weight: 700; color: #f5b83d; text-transform: uppercase; letter-spacing: .05em; }
.sv-card small { flex: 1; font-size: 11.5px; line-height: 1.35; color: #a49db8; }
.sv-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #c9c3d8; }
@media (max-width: 640px) { .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the small reward notice (obur.js showToast): bottom right, goes away by itself ---------- */
.reward-toast { position: fixed; right: 18px; bottom: 18px; z-index: 9900; display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 10px 14px; border-radius: 14px; border: 1px solid #8b5cf6; background: rgba(28, 22, 49, .96); color: #edeaf5; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font: 13.5px Arial, sans-serif; pointer-events: none; animation: rt-in .3s ease both; transition: opacity .45s, transform .45s; }
.reward-toast.hide { display: none; }
.reward-toast.out { opacity: 0; transform: translateY(12px); }
.rt-icons { display: flex; gap: 6px; flex: none; }
.rt-icons .gift-item { min-width: 0; animation: none; }
.rt-icons .gift-item b { display: none; }
.rt-icons img, .rt-icons svg { width: 34px !important; height: 34px !important; filter: none; }
.rt-icons .gift-skin { width: 34px; height: 34px; }
.rt-icons .gift-emoji { font-size: 28px; }
.rt-icons .ach-b { width: 34px !important; height: 34px !important; font-size: 11px !important; border-radius: 10px !important; }
.rt-text { line-height: 1.35; }
@keyframes rt-in { from { opacity: 0; transform: translateY(14px); } }

/* the event pill stays on one line (long admin titles are cut) */
.kt-event { white-space: nowrap; }
.kt-ev-left { white-space: nowrap; }
.kt-ev-title { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- server picker v2 (25.10): a row of mode buttons in the menu, one click switches ---------- */
.server-cards { display: block; margin: 0 0 10px; }
.sp-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #15111f; border: 1px solid #2c2540; }
.sp-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 46px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #a49db8; cursor: pointer; font-family: Arial, sans-serif; transition: background .15s, transform .12s; }
.sp-btn:hover { background: color-mix(in srgb, var(--c) 18%, transparent); transform: translateY(-1px); }
.sp-btn.on { background: color-mix(in srgb, var(--c) 30%, #1d1830); box-shadow: inset 0 0 0 2px var(--c), 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); color: #fff; }
.sp-ic { font-size: 19px; line-height: 1; filter: saturate(1.15); }
.sp-btn:not(.on) .sp-ic { opacity: .75; }
.sp-n { font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-cap { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 7px 10px; border-radius: 11px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, #1b1729), #1b1729 70%); border-left: 3px solid var(--c); text-align: left; font-family: Arial, sans-serif; }
.sp-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sp-name b { font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-more { flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #c4b5fd; font-size: 12px; line-height: 20px; cursor: pointer; }
.sp-more:hover { background: rgba(255, 255, 255, .18); }
.sp-desc { font-size: 10.5px; line-height: 1.3; color: #b8b0cc; }
.sp-stat { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #a49db8; }
.sp-ping { margin-left: auto; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-ping.good { color: #4ade80; background: rgba(34, 197, 94, .12); }
.sp-ping.mid { color: #facc15; background: rgba(234, 179, 8, .12); }
.sp-ping.bad { color: #f87171; background: rgba(239, 68, 68, .12); }

/* ---------- clans v2 (25.10): obur.js renderClanList / renderClan ---------- */
.kc-panel { width: 600px; }
.kc-small { width: 380px; }
.kc-btn { flex: none; padding: 8px 14px; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font: 700 12.5px Arial, sans-serif; cursor: pointer; transition: filter .12s, transform .12s; }
.kc-btn:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.kc-btn:disabled { opacity: .55; cursor: default; }
.kc-btn.small { padding: 6px 10px; font-size: 11.5px; }
.kc-btn.ghost { background: #2a2540; color: #c4b5fd; }
.kc-btn.danger { background: #dc2626; }
.kc-btn.danger.ghost { background: rgba(220, 38, 38, .14); color: #f87171; }
.kc-badge { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 45%, #110e1c)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); color: #fff; font: 800 14px Rajdhani, Arial, sans-serif; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.kc-badge.big { width: 58px; height: 58px; border-radius: 18px; font-size: 22px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 60%, transparent), 0 0 24px color-mix(in srgb, var(--c) 50%, transparent); }
.kc-create { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid #3a3256; background: radial-gradient(circle at 0 0, rgba(124, 58, 237, .25), transparent 60%), #1b1729; }
.kc-create-ic { font-size: 30px; line-height: 1; }
.kc-create-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 170px; }
.kc-create-txt b { font-size: 14px; }
.kc-create-txt span { font-size: 11.5px; color: #a49db8; }
#clans-input { display: flex; gap: 6px; flex: 1 1 100%; }
#clans-input input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #3a3256; border-radius: 10px; background: #110e1c; color: #edeaf5; font: 13px Arial, sans-serif; outline: none; }
#clans-input input:focus { border-color: #8b5cf6; }
#clans-input button { padding: 0 18px; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font: 700 13px Arial, sans-serif; cursor: pointer; }
.kc-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 46vh; overflow-y: auto; }
.kc-row, .kc-member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #1b1729; border: 1px solid transparent; }
.kc-row:hover, .kc-member:hover { border-color: #3a3256; }
.kc-place { flex: none; width: 22px; text-align: center; font: 800 15px Rajdhani, Arial, sans-serif; color: #7d7694; }
.kc-place.top1 { color: #f5b83d; } .kc-place.top2 { color: #cbd5e1; } .kc-place.top3 { color: #d97706; }
.kc-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kc-info b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-info span { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #a49db8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-xp { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.kc-xp b { font: 800 16px Rajdhani, Arial, sans-serif; color: #a78bfa; font-variant-numeric: tabular-nums; }
.kc-xp span { font-size: 10px; color: #7d7694; }
.kc-empty { padding: 18px; border-radius: 12px; background: #1b1729; color: #a49db8; font-size: 13px; text-align: center; }
.kc-head { flex-direction: row; align-items: center; gap: 14px; padding: 18px 64px 10px 20px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); border-radius: 20px 20px 0 0; }
.kc-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.kc-title h2 { margin: 0; font-size: 28px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kc-role { flex: none; padding: 3px 8px; border-radius: 999px; background: #2a2540; color: #c4b5fd; font-size: 11px; font-weight: 700; white-space: nowrap; }
.kc-role.leader { background: rgba(245, 184, 61, .16); color: #f5b83d; }
.kc-role.co-leader { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.kc-role.elder { background: rgba(34, 197, 94, .14); color: #4ade80; }
.kc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kc-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: #1b1729; }
.kc-stats b { font: 800 22px Rajdhani, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.kc-stats b.ok { color: #4ade80; } .kc-stats b.xp { color: #a78bfa; } .kc-stats b.gold { color: #f5b83d; }
.kc-stats span { font-size: 10.5px; color: #a49db8; text-align: center; }
.kc-tabs { display: flex; gap: 6px; margin-top: 12px; }
.kc-tabs button { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 10px; background: #1b1729; color: #a49db8; font: 700 12.5px Arial, sans-serif; cursor: pointer; }
.kc-tabs button.on { background: #2d2550; color: #fff; box-shadow: inset 0 0 0 1px #8b5cf6; }
.kc-tabs em { padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-style: normal; font-size: 10.5px; }
.kc-tabs em.hot { background: #dc2626; color: #fff; }
.kc-av { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2a2540; color: #c4b5fd; font-weight: 800; font-size: 14px; }
.kc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.kc-av i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #5d5675; box-shadow: 0 0 0 2px #1b1729; }
.kc-member.on .kc-av i { background: #22c55e; }
.kc-member:not(.on) .kc-info b { color: #b8b0cc; }
.kc-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #2c2540; }
.kc-foot span { flex: 1; font-size: 11px; color: #7d7694; }
.kc-assign { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kc-assign-who { grid-column: 1 / -1; margin: 0 0 4px; text-align: center; font-weight: 700; color: #c4b5fd; }
.kc-role-btn { padding: 10px; border: 0; border-radius: 10px; background: #2a2540; color: #edeaf5; font: 700 13px Arial, sans-serif; cursor: pointer; }
.kc-role-btn:hover { filter: brightness(1.2); }
.kc-role-btn.elder { color: #4ade80; } .kc-role-btn.co-leader { color: #93c5fd; } .kc-role-btn.expel { background: rgba(220, 38, 38, .16); color: #f87171; }
.kc-confirm { display: flex; justify-content: center; gap: 10px; }
@media (max-width: 560px) { .kc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kc-xp { display: none; } }

/* ---------- menu themes v2 (25.10): obur.js applyMenuTheme, mod.js toggleTheme ----------
   the picture fills the screen behind the menu (#overlays is hidden in game by the client), the panels are glass */
html.k-themed #overlays { display: block; opacity: 1; background: linear-gradient(rgba(6, 4, 14, .28), rgba(6, 4, 14, .5)), var(--k-theme-bg); }
html.k-themed.k-theme-clear #overlays { background: transparent; }
/* no backdrop-filter: the game canvas keeps drawing under the menu, so a blur had to be redone every frame (FPS drop) */
html.k-themed :is(#left-menu, .side-box, #menu.menu-center, .top-users, #text-block, #ad_bottom) {
    background: rgba(14, 10, 26, .74) !important;
    border-color: rgba(255, 255, 255, .12) !important;
}
html.k-themed :is(.top-users__inner, .friends-panel) { background: transparent !important; }
html.k-themed #overlays { z-index: 2; } /* above the game canvas (1), under the menu (.container 320) */

/* ---------- server picker v3 (25.10 morning): agar.io-like dropdown, obur.js renderServers ---------- */
.server-cards { position: relative; margin: 0 0 10px; z-index: 30; }
.ss { position: relative; font-family: Arial, sans-serif; }
.ss-cur { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 10px; border: 1px solid #3a3256; border-radius: 12px; background: #1b1729; color: #edeaf5; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.ss-cur:hover, .ss.open .ss-cur { border-color: var(--c); background: #221c35; }
.ss-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.ss-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ss-text small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #8f87a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-text b { font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.ss-pl { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #cfc8e2; font-variant-numeric: tabular-nums; }
.ss-ping { font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-ping.good { color: #4ade80; } .ss-ping.mid { color: #facc15; } .ss-ping.bad { color: #f87171; }
.ss-chev { flex: none; color: #8f87a8; transition: transform .15s; }
.ss.open .ss-chev { transform: rotate(180deg); }
.ss-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 14px; border: 1px solid #3a3256; background: #171323; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.ss.open .ss-list { display: flex; flex-direction: column; gap: 3px; }
.ss-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: #edeaf5; cursor: pointer; text-align: left; }
.ss-row:hover:not(:disabled) { background: #241e38; }
.ss-row.on { background: color-mix(in srgb, var(--c) 16%, #1b1729); box-shadow: inset 3px 0 0 var(--c); }
.ss-row:disabled { opacity: .45; cursor: default; }
.ss-row .ss-ic { width: 30px; height: 30px; border-radius: 9px; }
.ss-row .ss-text b { font-size: 12.5px; }
.ss-row .ss-text small { text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.ss-row .ss-text small { white-space: normal; line-height: 1.3; }

/* ---------- Obur Pass v2 (25.10 morning): obur.js renderPass ---------- */
#obur-pass .op-panel { width: 680px; }
#obur-pass .op-crown { width: 72px; height: 52px; margin-top: -44px; }
#obur-pass .op-body { position: relative; }
.opx-hero { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #241a3d, #120f1e); border: 1px solid #3a3256; }
.opx-ring { position: relative; flex: none; width: 72px; height: 72px; }
.opx-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px Rajdhani, Arial, sans-serif; color: #fde68a; }
.opx-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.opx-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: #c9c3d8; }
.opx-line > b { font: 800 20px Rajdhani, Arial, sans-serif; color: #fff; letter-spacing: .02em; }
.opx-line span b { color: #fde68a; font-variant-numeric: tabular-nums; }
.opx-bar { height: 10px; border-radius: 999px; background: #2a2540; overflow: hidden; }
.opx-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #fde68a); box-shadow: 0 0 12px rgba(251, 191, 36, .55); }
.opx-sub { font-size: 12px; color: #a49db8; }
.opx-sub em { font-style: normal; font-weight: 700; color: #4ade80; }
.opx-passcard { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(90deg, #3a2a08, #1d160a); border: 1px solid #7a5a12; }
.opx-passcard.own { background: linear-gradient(90deg, #13361f, #0f1d14); border-color: #1f7a3e; }
.opx-pc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opx-pc-text b { font: 800 17px Rajdhani, Arial, sans-serif; color: #fde68a; letter-spacing: .03em; }
.opx-pc-text span { font-size: 12px; color: #d9cfae; }
.opx-own { padding: 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, .18); color: #86efac; font-weight: 800; font-size: 13px; }
.opx-passcard button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #fbbf24, #d97706); color: #2b1600; font: 800 16px Rajdhani, Arial, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.opx-passcard button span { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.opx-chests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.opx-chest { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #15111f; border: 1px solid #2a2540; }
.opx-chest span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opx-chest b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opx-chest small { font-size: 12px; color: #a49db8; font-weight: 700; }
.opx-chest button { flex: none; min-height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 800; cursor: pointer; }
.opx-chest button[disabled] { background: #2a2540; color: #6f6888; cursor: default; }
.opx-cols { position: sticky; top: -8px; z-index: 2; display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px 0 6px; background: #15111f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8fa8d8; }
.opx-cols .gold { color: #fbbf24; }
.opx-track { display: flex; flex-direction: column; gap: 6px; }
.opx-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.opx-tier { display: grid; place-items: center; border-radius: 12px; background: #1f1a30; color: #6f6888; font: 800 18px Rajdhani, Arial, sans-serif; border: 1px solid #2a2540; }
.opx-row.open .opx-tier { background: linear-gradient(180deg, #fbbf24, #d97706); color: #2b1600; border-color: transparent; }
.opx-row.next .opx-tier { border: 2px solid #fbbf24; color: #fde68a; box-shadow: 0 0 14px rgba(251, 191, 36, .35); }
.opx-reward { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px; border-radius: 12px; border: 1px solid #263552; background: #111a2b; }
.opx-reward.pass { border-color: #5c4413; background: #21190c; }
.opx-reward.locked .opx-ric, .opx-reward.locked .opx-rtext { opacity: .45; }
.opx-reward.needpass { background: repeating-linear-gradient(135deg, #21190c 0 10px, #1c150a 10px 20px); }
.opx-reward.done { opacity: .7; }
.opx-ric { flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.opx-ric img, .opx-ric svg { max-width: 38px; max-height: 38px; }
.opx-ric .op-skin { width: 38px; height: 38px; }
.opx-rtext { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: #edeaf5; }
.opx-reward .op-claim { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #4ade80, #16a34a); color: #052e14; font-weight: 800; cursor: pointer; box-shadow: 0 0 12px rgba(74, 222, 128, .35); }
.opx-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #8f87a8; background: rgba(255, 255, 255, .05); white-space: nowrap; }
.opx-tag.ok { color: #86efac; background: rgba(34, 197, 94, .12); }
.opx-tag.lock { color: #fbbf24; background: rgba(251, 191, 36, .1); }
.lock-icon { vertical-align: -1px; }
@media (max-width: 560px) { .opx-chests { grid-template-columns: 1fr; } .opx-passcard { flex-wrap: wrap; } }

/* ---------- message & reward windows v2 (25.10 morning): the old white Sigmally alerts, now dark cards ---------- */
.connecting:not(#connecting) { background: rgba(5, 3, 12, .72); -webkit-backdrop-filter: none; backdrop-filter: none; }
.connecting:not(#connecting) > .connecting__content { width: 400px; overflow: visible; }
.connecting:not(#connecting) .alert {
    position: relative; gap: 14px; padding: 26px 24px 24px; border: 1px solid #3a3256 !important; border-radius: 20px;
    background: radial-gradient(120% 70% at 50% 0%, #2b1f4a 0%, #171324 60%, #110e1c 100%) !important; color: #edeaf5 !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); font-family: Arial, sans-serif; overflow: hidden;
}
.connecting:not(#connecting) .alert * { background-image: none; }
.connecting:not(#connecting) .alert-heading { justify-content: center; gap: 8px; font: 800 26px Rajdhani, Arial, sans-serif; letter-spacing: .04em; color: #fff !important; }
.connecting:not(#connecting) .alert-danger .alert-heading { color: #fca5a5 !important; }
.connecting:not(#connecting) .alert-success .alert-heading { background: linear-gradient(180deg, #fff6c8, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.connecting:not(#connecting) .alert p { color: #c9c3d8 !important; font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.connecting:not(#connecting) .alert .close-connecting-button { display: grid; place-items: center; top: -12px; right: -10px; width: 34px; height: 34px; border-radius: 50%; background: #2a2540; color: #c9c3d8; font-size: 14px; }
.connecting:not(#connecting) .alert .close-connecting-button:hover { background: #3a3256; color: #fff; }
.connecting:not(#connecting) .free-coins-body { gap: 10px; color: #edeaf5; }
#free-coins-image, .reward-coins-image { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin: 4px auto 2px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .28) 0%, rgba(251, 191, 36, .08) 45%, transparent 70%) !important; }
#free-coins-image::before, .reward-coins-image::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: repeating-conic-gradient(rgba(253, 230, 138, .14) 0 10deg, transparent 10deg 30deg); animation: k-rays 14s linear infinite; }
#free-coins-image img, .reward-coins-image img { position: relative; width: 78px !important; height: 78px !important; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
@keyframes k-rays { to { transform: rotate(360deg); } }
.connecting:not(#connecting) .free-coins-body p:has(#free-coins-value), .connecting:not(#connecting) .free-coins-body p:has(#reward-coins-value), .connecting:not(#connecting) .free-coins-body p:has(#challenge-coins-value) {
    padding: 6px 16px; border-radius: 999px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35);
}
#free-coins-value, #reward-coins-value, #challenge-coins-value { color: #fde68a !important; font: 800 28px Rajdhani, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.connecting:not(#connecting) .gift-icons { gap: 22px; }
.connecting:not(#connecting) .alert-danger { box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(239, 68, 68, .5); }
.connecting:not(#connecting) .alert .btn, .connecting:not(#connecting) .alert button:not(.close-connecting-button) { border-radius: 12px; }
/* the "loading" toast at the top */
#connecting .alert { border-radius: 14px; border: 1px solid #3a3256; background: #171324; color: #edeaf5; }
#connecting .alert-heading { color: #edeaf5; }
#connecting .loading-bar { background: #2a2540; }
#connecting .loading-bar-progress { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
/* the friends box was painted dark by the mod menu's "Dark" theme; themes no longer paint single boxes, so it is
   dark here. The empty ad box under the menu never shows. */
#text-block, #text-block > .right-menu { background: rgb(21, 19, 31) !important; border-radius: 16px; }
html.k-themed #text-block { background: rgba(14, 10, 26, .74) !important; }
html.k-themed #text-block > .right-menu { background: transparent !important; }
#ad_bottom { display: none !important; }
.connecting:not(#connecting) .free-coins-body > div { background: transparent !important; overflow: visible; }
#clan .connecting__content, #clans .connecting__content { background: transparent !important; box-shadow: none !important; }

/* ---------- shop v2 (25.10 morning): dark, calm, one accent; replaces the bright Sigmally look ---------- */
#shop #shop-area { border-radius: 20px; border: 1px solid #3a3256; background: #110e1c; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
#shop #shop-header { height: 58px; padding: 0 18px 0 22px; background: linear-gradient(90deg, #241a3d, #171324); border-bottom: 1px solid #2c2540; }
#shop #shop-header-title { font: 800 24px Rajdhani, Arial, sans-serif; letter-spacing: .05em; color: #fff; }
#shop #shop-header-buttons .coins-num { height: 32px; padding: 0 10px; border-radius: 999px; background: #1b1729; border: 1px solid #3a3256; }
#shop #shop-header-buttons .coins-value { color: #fde68a; font-weight: 800; }
#shop #shop-header-buttons .plus { height: 32px; width: 32px; border-radius: 50%; background: #22c55e; }
#shop #shop-header-buttons .close-btn { width: 36px; height: 36px; margin-left: 14px; border-radius: 50%; background: #2a2540; }
#shop #shop-content { padding: 18px; gap: 16px; background: #110e1c; }
#shop #shop-nav { gap: 4px; padding: 6px; border-radius: 16px; background: #171324; border: 1px solid #2a2540; }
#shop #shop-nav button { min-height: 44px; padding: 0 12px; border-radius: 12px; background: transparent; color: #c9c3d8; font-weight: 700; box-shadow: none; }
#shop #shop-nav button:hover { background: #1f1a30; color: #fff; }
#shop #shop-nav button.active { background: linear-gradient(90deg, rgba(124, 58, 237, .35), rgba(124, 58, 237, .08)); color: #fff; box-shadow: inset 3px 0 0 #a78bfa; }
#shop #shop-tab-body { padding: 16px; border-radius: 16px; background: #171324; border: 1px solid #2a2540; }
#shop #shop-skins-buttons { gap: 4px; padding: 4px; margin: 0 auto 16px; width: fit-content; border-radius: 14px; background: #110e1c; border: 1px solid #2a2540; border-bottom: 1px solid #2a2540 !important; }
#shop #shop-skins-buttons button { width: auto; height: 38px; padding: 0 18px; border-radius: 10px; background: transparent !important; color: #a49db8; font-size: 14px; font-weight: 800; box-shadow: none !important; text-shadow: none; }
#shop #shop-skins-buttons button:hover { color: #fff; background: #1f1a30 !important; }
#shop #shop-skins-buttons button.active { color: #fff; background: #7c3aed !important; }
#shop #shop-buttons-premium.active { background: linear-gradient(180deg, #fbbf24, #d97706) !important; color: #2b1600; }
#shop .tab-content { gap: 10px; justify-content: flex-start; }
#shop .skin-card { width: 132px; padding: 12px 10px 10px; border-radius: 16px; border: 1px solid #2a2540; background: #1b1729; color: #edeaf5; box-shadow: none; transition: transform .12s, border-color .12s; }
#shop .skin-card:hover { transform: translateY(-2px); border-color: #7c3aed; }
#shop .skin-card.selected { border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e inset; }
#shop .skin-card img, #shop .skin-card .skin-anim { width: 92px; height: 92px; background-color: #110e1c; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
#shop .skin-card .skin-name { color: #fff; font-size: 13px; }
#shop .skin-card .skin-price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #2a2540; color: #c9c3d8; font-size: 12px; font-weight: 800; box-shadow: none; }
#premium-tab .skin-card .skin-price { background: rgba(251, 191, 36, .12); color: #fbbf24; }
#shop .skin-eye { background: rgba(17, 14, 28, .75); }
#shop .shop-note { color: #a49db8; opacity: 1; }
#shop .shop-card { border-radius: 16px; border: 1px solid #2a2540; color: #edeaf5; background: #1b1729 !important; box-shadow: none; text-shadow: none; transition: transform .12s, border-color .12s; }
#shop .shop-card:hover { transform: translateY(-2px); border-color: #7c3aed; }
#shop .shop-card.green { box-shadow: inset 0 3px 0 #22c55e; }
#shop .shop-card.orange { box-shadow: inset 0 3px 0 #f59e0b; }
#shop .shop-card.purple { box-shadow: inset 0 3px 0 #8b5cf6; }
#shop .shop-card.teal { box-shadow: inset 0 3px 0 #14b8a6; }
#shop .shop-card.pink { box-shadow: inset 0 3px 0 #ec4899; }
#shop .shop-card .big img { width: 52px; height: 52px; object-fit: contain; }
#shop .shop-card .price { border-radius: 999px; background: rgba(251, 191, 36, .12); color: #fde68a; }
#shop .potion-slot { border-color: #3a3256; color: #a49db8; background: #15111f; }
#shop .potion-slot.filled { border-color: #7c3aed; background: #1f1733; color: #edeaf5; }
/* the updates and tournament windows were white */
#updates { background: #171324; border: 1px solid #3a3256; border-radius: 20px; color: #edeaf5; }
#updates-header { color: #fff; font-family: Rajdhani, Arial, sans-serif; font-weight: 800; }
#updates-feed > div { color: #c9c3d8; border-bottom-color: #2a2540; }
#updates-feed h3 { color: #fff; }
#tournament-page .connecting__content { background: #171324 !important; color: #edeaf5 !important; border: 1px solid #3a3256; border-radius: 20px !important; }
#tournament-page h2 { color: #fff !important; }
#shop #shop-nav button { border: 0 !important; }
#shop .tab-content { justify-content: center; }

/* 25.10 evening: 7 servers, the list scrolls instead of running off the screen */
.ss.open .ss-list { max-height: min(62vh, 560px); overflow-y: auto; z-index: 30; }

/* ---------- menu themes v3 (29.10): the picture is only behind the menu panels, the game shows around them ----------
   (fixed + cover: one picture across the whole screen, each panel shows its own part of it, like one window) */
html.k-themed:not(.k-theme-clear) #overlays { background: rgba(0, 0, 0, .18); }
html.k-themed:not(.k-theme-clear) :is(#left-menu, .side-box, #menu.menu-center, .top-users, #text-block) {
    background: linear-gradient(rgba(10, 7, 22, .42), rgba(10, 7, 22, .62)), var(--k-theme-bg) !important;
    background-attachment: fixed !important;
    border-color: rgba(255, 255, 255, .16) !important;
}

/* (29.10) skin shards (pieces from Obur Pass chests) */
.gift-skin.shard, .op-skin.shard { position: relative; background-size: cover; filter: saturate(.9); box-shadow: 0 0 0 3px #f0abfc, 0 4px 14px rgba(240, 171, 252, .5); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); border-radius: 0; }
.shard-badge { position: absolute; right: -2px; bottom: -2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.gift-skin.shard .shard-badge, .op-skin.shard .shard-badge { width: 40%; height: 40%; }
.opx-shards { margin: 4px 0 10px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(240,171,252,.10), rgba(99,102,241,.08)); border: 1px solid rgba(240,171,252,.22); }
.opx-sh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.opx-sh-head b { color: #f5d0fe; font-size: 13px; }
.opx-sh-head span { color: #a5b4cf; font-size: 11px; }
.opx-sh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.opx-sh { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 10px; background: rgba(0,0,0,.25); text-align: center; }
.opx-sh b { font-size: 11px; color: #e9e3ff; line-height: 1.2; }
.opx-sh small { font-size: 10px; color: #c4b5fd; font-weight: 700; }
.opx-sh-img { width: 48px; height: 48px; border-radius: 50%; background-size: cover; filter: grayscale(.75) brightness(.7); }
.opx-sh.done .opx-sh-img { filter: none; box-shadow: 0 0 0 2px #f0abfc, 0 0 12px rgba(240,171,252,.6); }
.opx-sh-bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.opx-sh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c084fc, #f0abfc); }
.skin-card .shard-badge { position: static; vertical-align: -6px; width: 16px; height: 16px; }

/* (30.10) Pembe & Aşk tab */
#pink-tab .pink-head { grid-column: 1 / -1; flex: 0 0 100%; width: 100%; display: flex; flex-direction: column; gap: 2px; margin: 6px 0 2px; padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 106, 168, .28), rgba(184, 138, 255, .12)); border: 1px solid rgba(255, 154, 208, .35); }
#pink-tab .pink-head b { color: #ffd0e6; font-size: 14px; }
#pink-tab .pink-head span { color: #f4c0dc; font-size: 11.5px; }
#shop-buttons-pink { color: #ffb0d8; }
#shop-buttons-pink.active { background: linear-gradient(135deg, #ff5aa0, #c04ad8) !important; color: #fff; }

/* (30.10) Obur Pass by card */
.opx-cardbuy { margin: 6px 0 12px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(245, 158, 11, .14), rgba(124, 58, 237, .12)); border: 1px solid rgba(253, 230, 138, .3); }
.opx-cb-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.opx-cb-head b { color: #fde68a; font-size: 15px; }
.opx-cb-head span { color: #c9bfe6; font-size: 12px; }
.opx-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .opx-plans { grid-template-columns: 1fr; } }
.opx-plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px; border-radius: 12px; background: #1b1530; border: 1px solid #3a2f5a; }
.opx-plan.hot { border-color: #f59e0b; box-shadow: 0 0 0 1px rgba(245, 158, 11, .35), 0 6px 22px rgba(245, 158, 11, .15); }
.opx-ptag { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 99px; background: linear-gradient(90deg, #f59e0b, #fde68a); color: #3a2200; font: 800 10px/1.5 sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.opx-ptitle { color: #fff; font-size: 14px; }
.opx-price { color: #fde68a; font-size: 26px; font-weight: 900; line-height: 1.1; }
.opx-price small { font-size: 13px; color: #f5d27a; }
.opx-per { color: #86efac; font-size: 11.5px; font-weight: 700; }
.opx-plan ul { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.opx-plan li { position: relative; padding-left: 18px; color: #d8d0f0; font-size: 11.5px; line-height: 1.35; }
.opx-plan li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 9px; height: 5px; border-left: 2px solid #86efac; border-bottom: 2px solid #86efac; transform: rotate(-45deg); }
.opx-plan button, .opx-payform button[type=submit] { padding: 9px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-weight: 800; cursor: pointer; }
.opx-plan button:hover { filter: brightness(1.1); }
.opx-payform { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; background: #1b1530; border: 1px solid #f59e0b; }
.opx-payform b { color: #fde68a; }
.opx-payform input { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 8px; border: 1px solid #3a2f5a; background: #120e20; color: #fff; }
.opx-payform small { color: #a99fc8; font-size: 11px; }
.opx-pf-row { display: flex; gap: 8px; }
.opx-pf-row button { flex: 1; }
.opx-payform .ghost { padding: 9px; border-radius: 9px; border: 1px solid #3a2f5a; background: transparent; color: #c9bfe6; cursor: pointer; }
.opx-own.off { background: rgba(245, 158, 11, .15); color: #fde68a; border: 1px solid rgba(245, 158, 11, .4); font-size: 11px; }
.opx-plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .opx-plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gold-buy .gp-coin img, .gold-buy .gp-coin svg { width: 30px; height: 30px; }
.gold-buy .opx-ptitle { font-size: 15px; color: #fde68a; }
#coins-tab .opx-cardbuy { margin-bottom: 14px; }
