a:link, a:active, a:visited {
    text-decoration: none;
    color: #f4d06e;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
    color: #f1d99a;
}

a input {
    cursor: pointer;
}

input, textarea, select {
    color: #000;
    font-size: 11px;
    margin: 2px 0px;
    background: linear-gradient(180deg, #d4c8b0 0%, #f0e6d1 100%);
    border: 1px solid #c9a03d;
    padding: 4px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #e5b55d;
    box-shadow: 0 0 5px rgba(201, 160, 61, 0.3);
}

body {
    font-size: 12px;
    color: #fff;
    max-width: 420px;
    background-color: #1e1e1e;
    margin: 8px auto;
}

form.login {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.user-list .user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #fff;
    padding: 22px 4px;
    text-align: center;
}
.head div {
    display: flex;
    align-items: center;
    gap: 4px;
}
.event {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}
.pannnl {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 4px;
}
.pannnl img {
    width: 110px;
    height: 12px;
}
.foot {
    padding: 4px;
    text-align: center;
    color: #CECCB6;
}

.zagolovok {
    background: linear-gradient(135deg, #694a26 0%, #4a3318 100%);
    padding: 8px 12px;
    color: #c9a03d;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #c9a03d;
    border-top: 1px solid rgba(201, 160, 61, 0.3);
}

.foot {
    display: flex;
    max-width: 352px;
    font-size: 10px;
    color: #fff;
    padding: 22px 0px;
    text-align: left;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}
.foot div {
    display: flex;
    width: 104px;
    padding: 4px 6px;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border:1px solid rgb(201 160 61 / 65%);
    color: #c9a03d;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.foot div:hover, .foot div a:hover {
    color: #f8f8f8;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    text-decoration: none;
}

.gameBorder {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgb(201 160 61 / 65%);
    border-radius: 8px;
    box-shadow:
            0 0 0 1px #2a2a2a,
            0 0 0 2px #0a0a0a,
            0 4px 15px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-image:
            repeating-linear-gradient(45deg, rgba(201, 160, 61, 0.03) 0px, rgba(201, 160, 61, 0.03) 2px, transparent 2px, transparent 8px),
            linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 10px;
}

/* Декоративные уголки (Lineage 2 style) */
.gameBorder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 4px solid rgb(201 160 61 / 65%);
    border-left: 4px solid rgb(201 160 61 / 65%);
    box-shadow: -1px -1px 0 #5a3e1a;
}

.gameBorder::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-top: 4px solid rgb(201 160 61 / 65%);
    border-right: 4px solid rgb(201 160 61 / 65%);
    box-shadow: 1px -1px 0 #5a3e1a;
}

/* Нижние уголки */
.gameBorder .corner-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-bottom: 4px solid rgb(201 160 61 / 65%);
    border-left: 4px solid rgb(201 160 61 / 65%);
    box-shadow: -1px 1px 0 #5a3e1a;
}

.gameBorder .corner-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 4px solid rgb(201 160 61 / 65%);
    border-right: 4px solid rgb(201 160 61 / 65%);
    box-shadow: 1px 1px 0 #5a3e1a;
}

/* Заголовок в стиле Lineage 2 */
.gameBorder h1,
.gameBorder h2,
.gameBorder .title {
    font-size: 14px;
    font-weight: bold;
    color: #c9a03d;
    text-shadow:
            0 1px 0 #2a1a0a,
            0 2px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 160, 61, 0.3);
    position: relative;
}

/* Декоративная линия под заголовком */
.gameBorder h1::after,
.gameBorder h2::after,
.gameBorder .title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #c9a03d, transparent);
}

/* Стили для списков (меню) */
.gameBorder ul {
    list-style: none;
    margin: 15px 0;
}

.gameBorder li {
    border-left: 3px solid transparent;
    position: relative;
}

.gameBorder li:hover {
    border-left-color: #c9a03d;
    background: linear-gradient(90deg, rgba(201, 160, 61, 0.1), transparent);
    color: #f5e5b5;
}

/* Декоративный элемент перед пунктами меню */
.gameBorder li::before {
    content: '▸';
    color: #c9a03d;
    position: absolute;
    left: -5px;
    opacity: 0;
    transition: all 0.2s ease;
}

.gameBorder li:hover::before {
    opacity: 1;
    left: 0;
}

/* Секции */
.gameBorder .section {
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 12px;
    border: 1px solid rgba(201, 160, 61, 0.2);
}

.gameBorder .section h3 {
    font-size: 14px;
}

/* Разделители */
.gameBorder hr {
    border: none;
    width: 100%;
    height: 1px;
    background-color: rgba(201, 160, 61, 0.5);
    background-image: linear-gradient(90deg, transparent, rgba(201, 160, 61, 0.5), transparent);
    margin: 15px 0;
}

/* Кнопки в стиле Lineage 2 */
.gameBorder button,
.gameBorder .button {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #c9a03d;
    color: #c9a03d;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gameBorder button:hover,
.gameBorder .button:hover {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #f5e5b5;
    border-color: #e5b55d;
    box-shadow: 0 0 5px rgba(201, 160, 61, 0.3);
}

/* Статистика/характеристики */
.gameBorder .stat {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: #b5a57a;
    font-size: 12px;
    border-bottom: 1px dashed rgba(201, 160, 61, 0.2);
}

.gameBorder .stat-value {
    color: #c9a03d;
    font-weight: bold;
}

/* Инвентарь (сетка) */
.gameBorder .inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.gameBorder .inventory-slot {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(201, 160, 61, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gameBorder .inventory-slot:hover {
    border-color: #c9a03d;
    box-shadow: inset 0 0 10px rgba(201, 160, 61, 0.2);
}

/* Скроллбар */
.gameBorder ::-webkit-scrollbar {
    width: 8px;
    background: #1a1a1a;
}

.gameBorder ::-webkit-scrollbar-thumb {
    background: #c9a03d;
    border-radius: 4px;
}

.gameBorder ::-webkit-scrollbar-thumb:hover {
    background: #e5b55d;
}

/* Текст */
.gameBorder p {
    color: #b5a57a;
    line-height: 1.5;
    font-size: 13px;
}

.gameBorder a {
    color: #c9a03d;
    text-decoration: none;
    transition: color 0.2s;
}

.gameBorder a:hover {
    color: #e5b55d;
    text-decoration: none;
}

/* Сохраняем ваши оригинальные стили для остальных классов, но улучшаем их в стиле Lineage 2 */
.main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.main-menu svg {
    width: 320px;
}
.main-menu svg path {
    fill: #fefefe;
}

.menu {
    padding: 8px;
}

.menu ul {
    display: flex;
    list-style-type: none;
    padding-left: 0;
    gap: 8px;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.menu ul li {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 48%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    text-align: center;
    padding: 6px 10px;
    justify-content: center;
    color: #c9a03d;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.menu ul li a:hover {
    text-decoration: none;
}

.menu ul li:hover {
    background: linear-gradient(90deg, rgba(201, 160, 61, 0.1), transparent);
    color: #f5e5b5;
    border-color: #e5b55d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.menu ul li:active {
    transform: translateY(0px);
}

.menu ul li span {
    color: #f8f8f8;
}

.bt {
    padding: 0;
    margin: 5px 0;
    height: 0;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid rgba(201, 160, 61, 0.3);
}

.info {
    text-align: center;
    margin-top: 12px;
    font-size: 10px;
    color: #c9a03d;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.logtext {
    background: linear-gradient(135deg, #d4c8a0 0%, #e1e493 100%);
    color: #4a3a1a;
    padding: 8px 12px;
    border-left: 3px solid #c9a03d;
    font-weight: bold;
}

.chattext {
    background: linear-gradient(135deg, #a0d4a0 0%, #e1e493 100%);
    color: #2a5a2a;
    padding: 8px 12px;
    border-left: 3px solid #5a9e3a;
    font-weight: bold;
}

.dlink {
    color: #7ad65a;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.dlink:hover {
    color: #9aff7a;
    text-shadow: 0 0 3px rgba(122, 214, 90, 0.5);
}

.inf {
    font-size: 12px;
    color: #e0d5b5;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #c9a03d;
}
.map tr,
.map td {
    border: 1px dotted #ccffff;
    width: 24px;
    height: 24px;
}
.map td {
    text-align: center;
    vertical-align: middle;
}

.map .loc {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    border: 1px dashed #00BCD4;
}
.map .grey {
    background: url(/pic/textures/dcss-full/dungeon/floor/ice_0_old.png);
    background-color: grey;
    background-position: center;
    background-size: cover;
}
.map .black {
    background: url(/pic/textures/dcss-full/dungeon/floor/dirt_full_new.png);
    background-color: black;
    background-position: center;
    background-size: cover;
}
.map .blue {
    background: url(/pic/textures/dcss-full/dungeon/gateways/portal.png);
    background-color: #37751b;
    background-position: center;
    background-size: cover;
}
.map .red {
    background: url(/pic/textures/dcss-full/dungeon/gateways/stone_arch_hell.png);
    background-color: #37751b;
    background-position: center;
    background-size: cover;
}

.shmot {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}
.shmot-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shmot-item-slot {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(201, 160, 61, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
}
.shmot-item-slot:hover {
    border-color: #c9a03d;
    box-shadow: inset 0 0 10px rgba(201, 160, 61, 0.2);
}
.shmot-item-slot img {
    width: auto;
    height: 100%;
}

.bottom-panel {
    position: sticky;
    max-width: 420px;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 999;
}
.bottom-panel-nav {
    width: 100%;
    padding-top: 22%;
    padding-bottom: 4%;
    background: url(images/bottom-panel-nav.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100%;
}
.ticket {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 160px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #c9a03d;
    color: #c9a03d;
    text-align: center;
    padding: 8px 12px;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.button:hover {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #f5e5b5;
    border-color: #e5b55d;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.button:active {
    transform: translateY(0px);
}

.clan-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.clan-title .title {
    padding-bottom: 2px;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.table {
    --bs-table-border-color: #dee2e657;
}

/* Адаптивность */
@media (max-width: 420px) {
    .gameBorder {
        padding: 10px;
    }

    .gameBorder .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}