.dn_stl_bot1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.dn_stl_bot1_left {
    width: 120px;
    box-sizing: border-box;
    flex-shrink: 0;
    align-items: center;
    text-align: center;
    border-radius: 3px;
}

.dn_stl_bot1_left img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid grey;
    background-color: #111;
}

.dn_stl_bot1_left > div:first-child {
    text-align: center;
}

.dn_stl_bot1_right {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    min-width: 0;
}

@media (max-width: 768px) {
    .dn_stl_bot1 {
        flex-direction: column;
    }
    
    .dn_stl_bot1_left {
        width: 100%;
        max-width: 120px; 
        margin: 0 auto;
    }
    
    .dn_stl_bot1_right {
        width: 100%;
    }
}

/* Контейнер списка дропа */
.drop-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 2px;
}

/* Каждый отдельный предмет */
.drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e6d9a5;
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #cfc28e;
    transition: all 0.2s ease;
}

.drop-item:nth-child(even) {
    background: #DFD3A3;
}

/* Блок с картинкой слева */
.drop-item-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 4px;
}

.drop-item-image img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* Блок с информацией справа - ТЕПЕРЬ ВЕРТИКАЛЬНО */
.drop-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Название предмета */
.drop-item-name {
    font-weight: bold;
}

.drop-item-name a {
    color: #2c2b26;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.drop-item-name a:hover {
    color: #6f653b;
    text-decoration: underline;
}

/* Блок с вероятностью */
.drop-item-chance-wrap {
    font-size: 12px;
    color: #4a4635;
}

.drop-item-chance-value {
    background: #27ae60;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    display: inline-block;
}

/* Шансы выпадения от 0% до 100% */
.drop-item-chance-value-0 { background: #ff0000; color: #ffffff; }
.drop-item-chance-value-1 { background: #ff1900; color: #ffffff; }
.drop-item-chance-value-2 { background: #ff3200; color: #ffffff; }
.drop-item-chance-value-3 { background: #ff4c00; color: #ffffff; }
.drop-item-chance-value-4 { background: #ff6500; color: #ffffff; }
.drop-item-chance-value-5 { background: #ff7f00; color: #ffffff; }
.drop-item-chance-value-6 { background: #ff9800; color: #ffffff; }
.drop-item-chance-value-7 { background: #ffb200; color: #1a1a1a; }
.drop-item-chance-value-8 { background: #ffcb00; color: #1a1a1a; }
.drop-item-chance-value-9 { background: #ffe500; color: #1a1a1a; }
.drop-item-chance-value-10 { background: #ffef00; color: #1a1a1a; }
.drop-item-chance-value-11 { background: #f7f000; color: #1a1a1a; }
.drop-item-chance-value-12 { background: #e6f000; color: #1a1a1a; }
.drop-item-chance-value-13 { background: #d4f000; color: #1a1a1a; }
.drop-item-chance-value-14 { background: #c3f000; color: #1a1a1a; }
.drop-item-chance-value-15 { background: #b2f000; color: #1a1a1a; }
.drop-item-chance-value-16 { background: #a0f000; color: #1a1a1a; }
.drop-item-chance-value-17 { background: #8ff000; color: #1a1a1a; }
.drop-item-chance-value-18 { background: #7ef000; color: #1a1a1a; }
.drop-item-chance-value-19 { background: #6cf000; color: #1a1a1a; }
.drop-item-chance-value-20 { background: #5bf000; color: #1a1a1a; }
.drop-item-chance-value-21 { background: #55e800; color: #1a1a1a; }
.drop-item-chance-value-22 { background: #4fe000; color: #1a1a1a; }
.drop-item-chance-value-23 { background: #49d800; color: #ffffff; }
.drop-item-chance-value-24 { background: #43d000; color: #ffffff; }
.drop-item-chance-value-25 { background: #3dc800; color: #ffffff; }
.drop-item-chance-value-26 { background: #37c000; color: #ffffff; }
.drop-item-chance-value-27 { background: #31b800; color: #ffffff; }
.drop-item-chance-value-28 { background: #2bb000; color: #ffffff; }
.drop-item-chance-value-29 { background: #25a800; color: #ffffff; }
.drop-item-chance-value-30 { background: #1fa000; color: #ffffff; }
.drop-item-chance-value-31 { background: #1e9800; color: #ffffff; }
.drop-item-chance-value-32 { background: #1d9000; color: #ffffff; }
.drop-item-chance-value-33 { background: #1c8800; color: #ffffff; }
.drop-item-chance-value-34 { background: #1b8000; color: #ffffff; }
.drop-item-chance-value-35 { background: #1a7800; color: #ffffff; }
.drop-item-chance-value-36 { background: #197000; color: #ffffff; }
.drop-item-chance-value-37 { background: #186800; color: #ffffff; }
.drop-item-chance-value-38 { background: #176000; color: #ffffff; }
.drop-item-chance-value-39 { background: #165800; color: #ffffff; }
.drop-item-chance-value-40 { background: #155000; color: #ffffff; }
.drop-item-chance-value-41 { background: #154c00; color: #ffffff; }
.drop-item-chance-value-42 { background: #154800; color: #ffffff; }
.drop-item-chance-value-43 { background: #154400; color: #ffffff; }
.drop-item-chance-value-44 { background: #154000; color: #ffffff; }
.drop-item-chance-value-45 { background: #153c00; color: #ffffff; }
.drop-item-chance-value-46 { background: #153800; color: #ffffff; }
.drop-item-chance-value-47 { background: #153400; color: #ffffff; }
.drop-item-chance-value-48 { background: #153000; color: #ffffff; }
.drop-item-chance-value-49 { background: #152c00; color: #ffffff; }
.drop-item-chance-value-50 { background: #158000; color: #ffffff; }
.drop-item-chance-value-51 { background: #168800; color: #ffffff; }
.drop-item-chance-value-52 { background: #179000; color: #ffffff; }
.drop-item-chance-value-53 { background: #189800; color: #ffffff; }
.drop-item-chance-value-54 { background: #19a000; color: #ffffff; }
.drop-item-chance-value-55 { background: #1aa800; color: #ffffff; }
.drop-item-chance-value-56 { background: #1bb000; color: #ffffff; }
.drop-item-chance-value-57 { background: #1cb800; color: #ffffff; }
.drop-item-chance-value-58 { background: #1dc000; color: #ffffff; }
.drop-item-chance-value-59 { background: #1ec800; color: #ffffff; }
.drop-item-chance-value-60 { background: #1fd000; color: #ffffff; }
.drop-item-chance-value-61 { background: #2ad400; color: #ffffff; }
.drop-item-chance-value-62 { background: #35d800; color: #ffffff; }
.drop-item-chance-value-63 { background: #40dc00; color: #ffffff; }
.drop-item-chance-value-64 { background: #4be000; color: #ffffff; }
.drop-item-chance-value-65 { background: #56e400; color: #ffffff; }
.drop-item-chance-value-66 { background: #61e800; color: #ffffff; }
.drop-item-chance-value-67 { background: #6cec00; color: #1a1a1a; }
.drop-item-chance-value-68 { background: #77f000; color: #1a1a1a; }
.drop-item-chance-value-69 { background: #82f400; color: #1a1a1a; }
.drop-item-chance-value-70 { background: #8df800; color: #1a1a1a; }
.drop-item-chance-value-71 { background: #98fc00; color: #1a1a1a; }
.drop-item-chance-value-72 { background: #a3ff00; color: #1a1a1a; }
.drop-item-chance-value-73 { background: #aeff00; color: #1a1a1a; }
.drop-item-chance-value-74 { background: #b9ff00; color: #1a1a1a; }
.drop-item-chance-value-75 { background: #c4ff00; color: #1a1a1a; }
.drop-item-chance-value-76 { background: #cfff00; color: #1a1a1a; }
.drop-item-chance-value-77 { background: #daff00; color: #1a1a1a; }
.drop-item-chance-value-78 { background: #e5ff00; color: #1a1a1a; }
.drop-item-chance-value-79 { background: #f0ff00; color: #1a1a1a; }
.drop-item-chance-value-80 { background: #f8f000; color: #1a1a1a; }
.drop-item-chance-value-81 { background: #f8e600; color: #1a1a1a; }
.drop-item-chance-value-82 { background: #f8dc00; color: #1a1a1a; }
.drop-item-chance-value-83 { background: #f8d200; color: #1a1a1a; }
.drop-item-chance-value-84 { background: #f8c800; color: #1a1a1a; }
.drop-item-chance-value-85 { background: #f8be00; color: #1a1a1a; }
.drop-item-chance-value-86 { background: #f8b400; color: #1a1a1a; }
.drop-item-chance-value-87 { background: #f8aa00; color: #1a1a1a; }
.drop-item-chance-value-88 { background: #f8a000; color: #1a1a1a; }
.drop-item-chance-value-89 { background: #f89600; color: #1a1a1a; }
.drop-item-chance-value-90 { background: #d4ff00; color: #1a1a1a; }
.drop-item-chance-value-91 { background: #c0ff00; color: #1a1a1a; }
.drop-item-chance-value-92 { background: #acff00; color: #1a1a1a; }
.drop-item-chance-value-93 { background: #98ff00; color: #1a1a1a; }
.drop-item-chance-value-94 { background: #84ff00; color: #1a1a1a; }
.drop-item-chance-value-95 { background: #70ff00; color: #1a1a1a; }
.drop-item-chance-value-96 { background: #5cff00; color: #1a1a1a; }
.drop-item-chance-value-97 { background: #48ff00; color: #1a1a1a; }
.drop-item-chance-value-98 { background: #34ff00; color: #1a1a1a; }
.drop-item-chance-value-99 { background: #20ff00; color: #1a1a1a; }
.drop-item-chance-value-100 { background: #00ff00; color: #1a1a1a; }
/* Количество (если нужно) */
.drop-item-amount {
    background: #cfc28e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: #2c2b26;
    white-space: nowrap;
}

/* Шанс выпадения (альтернативный стиль) */
.drop-item-chance {
    background: #27ae60;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    display: inline-block;
}

.drop-item-chance.rare {
    background: #e67e22;
}

.drop-item-chance.epic {
    background: #8e44ad;
}

.drop-item-chance.legendary {
    background: #d4a017;
}

/* Бейдж с доп. данными */
.drop-item-data {
    background: #7a6d4a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    color: #fffcf1;
    white-space: nowrap;
    display: inline-block;
    width: fit-content;
}

/* Сообщение "Нет предметов" */
.no-drop {
    color: #7a6d4a;
    font-style: italic;
    padding: 10px;
    text-align: center;
    background: #e6d9a5;
    border-radius: 6px;
    border: 1px solid #cfc28e;
    margin-top: 10px;
}

/* Стилизация скроллбара */
.drop-items::-webkit-scrollbar {
    width: 6px;
}

.drop-items::-webkit-scrollbar-track {
    background: #DFD3A3;
    border-radius: 3px;
}

.drop-items::-webkit-scrollbar-thumb {
    background: #cfc28e;
    border-radius: 3px;
}

.drop-items::-webkit-scrollbar-thumb:hover {
    background: #b8a96e;
}

/* Группы с логикой */
.drop-group-visual {
    margin-bottom: 10px;
    border-left: 3px solid;
    padding-left: 10px;
}

.group-and {
    border-left-color: #27ae60;
}

.group-or {
    border-left-color: #e67e22;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
}

.group-logic {
    font-weight: bold;
}

.group-and .group-logic {
    color: #27ae60;
}

.group-or .group-logic {
    color: #e67e22;
}

.group-props {
    color: #7a6d4a;
    font-size: 11px;
}

.group-children {
    margin-left: 15px;
}

.or-separator {
    text-align: center;
    color: #e67e22;
    font-size: 11px;
    padding: 5px 0;
    font-weight: bold;
}

.drop-item-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
}

.item-chance {
    background: #27ae60;
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
}

/* АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .drop-items {
        max-height: none;
        gap: 6px;
    }
    
    .drop-item {
        padding: 8px;
        gap: 10px;
    }
    
    .drop-item-image {
        width: 45px;
        height: 45px;
        padding: 3px;
    }
    
    .drop-item-info {
        gap: 4px;
    }
    
    .drop-item-name a {
        font-size: 12px;
    }
    
    .drop-item-chance-wrap {
        font-size: 11px;
    }
    
    .drop-item-chance-value {
        font-size: 10px;
        padding: 1px 6px;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .drop-item {
        padding: 6px;
        gap: 8px;
    }
    
    .drop-item-image {
        width: 40px;
        height: 40px;
    }
    
    .drop-item-name a {
        font-size: 11px;
    }
    
    .drop-item-chance-wrap {
        font-size: 10px;
    }
    
    .drop-item-chance-value {
        font-size: 9px;
        padding: 1px 5px;
    }
}

/* Для горизонтальной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .drop-items {
        max-height: 250px;
        overflow-y: auto;
    }
    
    .drop-item {
        padding: 6px 10px;
    }
    
    .drop-item-image {
        width: 35px;
        height: 35px;
    }
    
    .drop-item-name a {
        font-size: 11px;
    }
}

.box_bot_line1 {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #cfc28e;
    border-right: 1px solid #cfc28e;
    border-left: 1px solid #cfc28e;
    transition: background-color 0.3s ease;
}
    
.box_bot_line1 {
    background-color: #e6d9a5;
}

.box_bot_line1:nth-child(even) {
    background-color: #DFD3A3;
}

.box_bot_line1_left {
    flex-shrink: 0;
    width: auto;
    min-width: 100px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
}

.box_bot_line1_right {
    flex-grow: 1;
    padding: 10px;
}

.bot-highlight-0 { background-color: #FF0000; }
.bot-highlight-1 { background-color: #ff4a4a; }
.bot-highlight-2 { background-color: #ab0202; }
.bot-highlight-3 { background-color: #ffb412; }
.bot-highlight-4 { background-color: #cfc858; }
.bot-highlight-5 { background-color: #75ff63; }
.bot-highlight-6 { background-color: #57d90f; }
.bot-highlight-7 { background-color: #4aa210; }
.bot-highlight-8 { background-color: #33ccff; }
.bot-highlight-9 { background-color: #4bf4ff; }
.bot-highlight-10 { background-color: #1999dc; }
.bot-highlight-11 { background-color: #4f57ff; }
.bot-highlight-12 { background-color: #ff00ff; }
.bot-highlight-13 { background-color: #d00660; }
.bot-highlight-14 { background-color: #FF6600; }
.bot-highlight-15 { background-color: #FFD700; }
.bot-highlight-16 { background-color: #ADFF2F; }
.bot-highlight-17 { background-color: #00FF7F; }
.bot-highlight-18 { background-color: #00CED1; }
.bot-highlight-19 { background-color: #1E90FF; }
.bot-highlight-20 { background-color: #6A5ACD; }
.bot-highlight-21 { background-color: #FF69B4; }
.bot-highlight-22 { background-color: #FF4500; }
.bot-highlight-23 { background-color: #FFD700; }
.bot-highlight-24 { background-color: #7CFC00; }
.bot-highlight-25 { background-color: #00FA9A; }
.bot-highlight-26 { background-color: #00BFFF; }
.bot-highlight-27 { background-color: #4169E1; }
.bot-highlight-28 { background-color: #8A2BE2; }
.bot-highlight-29 { background-color: #FF1493; }
.bot-highlight-30 { background-color: #DC143C; }

.box_bot_line1.bot-selected {
    background-color: inherit;
}
    
.box_obj_line1 {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #cfc28e;
    border-right: 1px solid #cfc28e;
    border-left: 1px solid #cfc28e;
    transition: background-color 0.3s ease;
}

.box_obj_line1 {
    background-color: #e6d9a5;
}

.box_obj_line1:nth-child(even) {
    background-color: #DFD3A3;
}

.box_obj_line1_left {
    flex-shrink: 0;
    width: auto;
    min-width: 100px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
}

.box_obj_line1_right {
    flex-grow: 1;
    padding: 10px;
}

/* Стили подсветки для объектов */
.box_obj_line1[class*="obj-highlight-"] {
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2);
    border-radius: 3px;
}

.obj-highlight-0 { background-color: #FFFD00; }
.obj-highlight-1 { background-color: #FFFD00; }
.obj-highlight-2 { background-color: #FFFD00; }
.obj-highlight-3 { background-color: #FFFD00; }
.obj-highlight-4 { background-color: #FFFD00; }
.obj-highlight-5 { background-color: #FFFD00; }
.obj-highlight-6 { background-color: #FFFD00; }
.obj-highlight-7 { background-color: #FFFD00; }
.obj-highlight-8 { background-color: #FFFD00; }
.obj-highlight-9 { background-color: #FFFD00; }
.obj-highlight-10 { background-color: #FFFD00; }
.obj-highlight-11 { background-color: #FFFD00; }
.obj-highlight-12 { background-color: #FFFD00; }
.obj-highlight-13 { background-color: #FFFD00; }
.obj-highlight-14 { background-color: #FFFD00; }
.obj-highlight-15 { background-color: #FFFD00; }
.obj-highlight-16 { background-color: #FFFD00; }
.obj-highlight-17 { background-color: #FFFD00; }
.obj-highlight-18 { background-color: #FFFD00; }
.obj-highlight-19 { background-color: #FFFD00; }
.obj-highlight-20 { background-color: #FFFD00; }
.obj-highlight-21 { background-color: #FFFD00; }
.obj-highlight-22 { background-color: #FFFD00; }
.obj-highlight-23 { background-color: #FFFD00; }
.obj-highlight-24 { background-color: #FFFD00; }
.obj-highlight-25 { background-color: #FFFD00; }
.obj-highlight-26 { background-color: #FFFD00; }
  
.box_bot_line1[class*="bot-highlight-"] {
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2);
    border-radius: 3px;
}
    
.el_bot {
    opacity: 0.75;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0px;
}

.el_bot[style*="background-color"] {
    outline: 2px solid rgba(255,255,255,0.30);
    outline-offset: 2px;
}

.el_obj[style*="background-color"] {
    outline: 2px solid rgba(255,255,255,0.30);
    outline-offset: 2px;
}
                    
.floor-btn {
    background: #2c3e50;
    color: #ecf0f1;
}

.floor-btn-selected {
    background-color: rgb(157 146 102) !important;
    color: #fffcf1 !important;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(207,194,142,0.5);
}

.floor-btn:hover {
    background: #34495e;
}

.floor-btn-selected:hover {
    background-color: rgb(207,194,142) !important;
}

.dng_a_psh_link {
    margin-right: 15px;
    padding: 5px;
    border-radius: 3px;
    padding-right: 10px;
    line-height: 30px;
    white-space: nowrap;
}

@media (max-width: 715px) {
    .dng_a_psh_link {
        display: block;
    }
}

.dng_a_psh_link_selected {
    background-color: rgb(207,194,142);
}

.dng_a_psh_link img {
    vertical-align: middle;
    transform: scaleX(-1);
    margin-top: -4px;
}

#dng_map_body {
    width: 100%;
    height: 100%;
}

/* Контейнер карты */
.dungeon-map-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
}

/* Обертка для карты с линейкой */
.dungeon-map-wrapper {
    display: inline-block;
}

/* Сетка карты */
.dungeon-map {
    display: grid;
    grid-template-columns: var(--ruler-size) repeat(var(--grid-width), var(--cell-size));
    grid-template-rows: var(--ruler-size) repeat(var(--grid-height), var(--cell-size));
    gap: 0;
    min-width: max-content;
    min-height: max-content;
}

/* Ячейки линейки */
.ruler-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a2e;
    color: #7a6d4a;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #7a6d4a;
    user-select: none;
    position: sticky;
    z-index: 5;
}

.ruler-corner {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #dcd0a2;
}

.ruler-top {
    position: sticky;
    top: 0;
    z-index: 6;
    background-color: #c9c19a;
    font-size: 11px;
}

.ruler-left {
    position: sticky;
    left: 0;
    z-index: 7;
    background-color: #c9c19a;
    font-size: 11px;
}

/* Ячейка карты */
.dungeon-cell {
    position: relative;
    background-color: #9d9266;
    border-right: 1px dotted rgba(44,62,80,0.5);
    border-bottom: 1px dotted rgba(44,62,80,0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: var(--cell-size);
    min-height: var(--cell-size);
}

.dungeon-cell:hover {
    background-color: #6f653b;
    transform: scale(0.98);
    z-index: 10;
}

/* Пустая ячейка */
.dungeon-cell-empty {
    background-color: rgba(10,10,21,0.19);
    opacity: 0.5;
}

/* Стартовая ячейка */
.dungeon-cell-start {
    background-color: #1a3a2a;
    border: 2px solid #27ae60;
    box-shadow: inset 0 0 10px rgba(39, 174, 96, 0.3);
}

/* Стены */
.dungeon-walls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.wall {
    position: absolute;
    background-color: #474643;
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.5);
}

.wall-top {
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.wall-right {
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
}

.wall-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.wall-left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
}

/* Содержимое ячейки */
.dungeon-cell-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    gap: 2px;
}

.dungeon-cell-start-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 4px #27ae60);
    line-height: 1;
}

.dungeon-cell-name {
    font-size: 12px;
    font-weight: bold;
    color: #ecf0f1;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 4px;
    border-radius: 4px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* Координаты в ячейке */
.dungeon-cell-coords {
    font-size: 8px;
    color: #7f8c8d;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 3px;
    border-radius: 3px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
    position: absolute;
    top: 1px;
    left: 1px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .dungeon-map {
        --cell-size: 40px !important;
        --ruler-size: 25px !important;
    }

    .dungeon-cell-start-icon {
        font-size: 18px;
    }

    .dungeon-cell-name {
        font-size: 10px;
    }

    .dungeon-cell-coords {
        font-size: 6px;
    }

    .ruler-cell {
        font-size: 9px;
    }
}

/* Информационная панель */
.dungeon-map-info {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    color: #ecf0f1;
    font-size: 14px;
}

/* Эффект при клике */
.dungeon-cell:active {
    transform: scale(0.95);
}

/* Для ячеек с мобами/объектами */
.dungeon-cell-has-bot {
    background: linear-gradient(135deg, #16213e 0%, #2c1a3e 100%);
    position: relative;
}

.dungeon-cell-has-bot::after {
    content: '[bot_css]';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 12px;
    opacity: 0.7;
}

.dungeon-cell-has-obj {
    background: linear-gradient(135deg, #16213e 0%, #1a3e2a 100%);
}

.dungeon-cell-has-obj::after {
    content: '[obj_css]';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 12px;
    opacity: 0.7;
}

.map-rotate-panel {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: left;
}

.rotate-btn {
    display: inline-block;
    padding: 3px 16px;
    background: #dcd0a2;
    color: #474643;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
    font-weight: bold;
}

.rotate-btn:hover {
    color: #303030;
    background: #fffcf1;
    transform: scale(1.05);
}

.rotate-left:active, .rotate-right:active {
    transform: scale(0.95);
}