/* secret_viewer 専用スタイル — 既存の sokomin.github.io/styles.css と
 * /map/js/style.css をベースに、不足分・上書き分のみ書く。
 */

#map_title_name h4 {
    margin: 6px 0 4px;
    color: #e95388;
}

/* マップ切替タブ (同一ダンジョンで複数マップを持つ秘密用) */
#map_tabs {
    margin: 8px 0 4px 20px;
}

.map-tab-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.map-tab {
    background: #f0f4f8;
    border: 1px solid #c1c8d2;
    color: #2d3748;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 3px;
    font-family: inherit;
}

.map-tab:hover:not(.disabled):not(.active) {
    background: #d6e0eb;
}

.map-tab.active {
    background: #1f4180;
    color: #ffffff;
    border-color: #1f4180;
    cursor: default;
}

.map-tab.disabled {
    color: #a0a8b0;
    background: #f5f6f8;
    cursor: not-allowed;
}

#map_level_range,
#map_extra_info {
    padding-left: 20px;
    color: #444444;
    font-size: 14px;
}

#map_extra_info {
    margin-top: 6px;
}

#map_image {
    position: absolute;
    top: 0;
    left: 20px;
    image-rendering: pixelated;
}

#map-drawer,
#map-portal {
    position: absolute;
    top: 0;
    left: 0;
}

/* 画像なしダンジョン用プレースホルダ */
.map-placeholder {
    position: absolute;
    top: 0;
    left: 20px;
    background: repeating-linear-gradient(45deg, #e2e8ee, #e2e8ee 10px, #d6dde6 10px, #d6dde6 20px);
    color: #5a6877;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #c1c8d2;
    box-sizing: border-box;
    font-size: 12px;
}

.map-placeholder span {
    font-size: 11px;
    margin-top: 4px;
    color: #7a8693;
}

/* Obj/Lnk オーバーレイ — map/js/style.css のフォント設定と整合させる */
.Obj.Pa,
.Obj.Pb,
.Lnk.Pa,
.Lnk {
    font-weight: bold;
    font-size: 12px;
    pointer-events: auto;
}

.Obj.Pa {
    color: #000000;
}

.Obj.Pb {
    color: #ff0000;
}

/* 名前クリックで同 inid のドットをハイライト (色反転) */
.Obj.Pa.highlighted,
.Obj.Pb.highlighted {
    color: #ffff00;
    background-color: #000000;
    border-radius: 2px;
    padding: 0 2px;
    z-index: 10;
}

a.mob-name-link {
    color: #1f4180;
    text-decoration: none;
    cursor: pointer;
}

a.mob-name-link:hover {
    text-decoration: underline;
    color: #d63384;
}

a.mob-name-link.active {
    color: #ffffff;
    background-color: #1f4180;
    padding: 1px 4px;
    border-radius: 3px;
}

#npc_info td.mob-num {
    font-family: monospace;
    text-align: center;
}

/* 情報テーブル */
#npc_info {
    text-align: center;
    margin-top: 30px;
}

#npc_info table {
    border: 0;
    border-spacing: 1px;
    border-collapse: separate;
}

#npc_info th {
    background-color: #4a5568;
    color: #ffffff;
    padding: 4px 8px;
    text-align: center;
}

#npc_info td {
    background-color: #f8fafc;
    padding: 4px 8px;
}

/* エラー / 注釈 */
.viewer-error {
    color: #b91c1c;
    background: #fff5f5;
    border: 1px solid #f5b5b5;
    padding: 8px 12px;
    margin: 12px 20px;
    border-radius: 4px;
}

.viewer-loading {
    color: #627d98;
    margin: 12px 20px;
    font-size: 13px;
}
