@font-face {
    font-family: en;
    src: url(../client/public/fonts/inconsolata.woff);
}

@font-face {
    font-family: sym;
    src: url(../client/public/fonts/symmingliu.woff);
}

@font-face {
    font-family: huninn;/*    src: url(../font/jf-openhuninn-2.0.ttf);*/
    src: url(../font/huakang.ttc);
}

@font-face {
    font-family: zh;
    src: local("微軟正黑體"), local("Microsoft JhengHei"), local("Lantinghei TC"), local("MingLiU_HKSCS");
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-button {
    background: #060b07;
    border-radius: 0px;
}

::-webkit-scrollbar-track-piece {
    background: #060b07;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgb(202 255 167 / 29%);
    border: 1px solid #060b07;
}

::-webkit-scrollbar-track {
    box-shadow: transparent;
}

table {
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    margin-bottom: 20px;
    width: 60%;
    min-width: 600px;
}

.phone table {
    margin-left: 2%;
    width: 96%;
    min-width: auto;
}

.phone .id {
    display: none;
}

.id {
    font-size: 15px;
}

body {
    position: relative;
    background-image: url('/image/leaf.jpg');
    color: #cccccc;
    font-family: en, sym, huninn, zh !important;
    margin: 0;
}

.ui-container {
    max-width: 1000px;
    position: relative;
    min-width: 1000px;
    margin: 0 auto !important;
}

.phone .ui-container {
    max-width: auto;
    min-width: auto;
}

h1, h2 {
    color: #eeeeee;
    text-shadow: black 3px 3px;
    text-align: center;
    margin: 3px;
}

h2 {
    font-weight: initial;
}

td {
    text-align: center;
}

td:first-child {
    text-align: left;
}

.cuisine-table td:nth-child(2) {
    text-align: left;
}

.BGRN {
    background-color: darkgreen;
}

.BRED {
    background-color: darkred;
}

.BYEL {
    background-color: #999900;
}

.GRAY, .BLK {
    color: #6e6e6e;
}

.RED {
    color: #bf1b00;
}

.GRN {
    color: #00ac00;
}

.YEL {
    color: #999900;
}

.BLU {
    color: #0033ff;
}

.MAG {
    color: #a501a7;
}

.CYN {
    color: #01a894;
}

.NOR, .WHT {
    color: #cccccc;
}

.HIR {
    color: #ff193f;
}

.HIG {
    color: #64e544;
}

.HIY {
    color: #f3df00;
}

.HIB {
    color: #3670dd;
}

.HIM {
    color: #f100e4;
}

.HIC {
    color: #5bedf6;
}

.HIW {
    color: #ffffff;
}

.long {
    position: absolute;
    width: 200px;
    color: #666;
    background: #ccc;
}

tr {
    cursor: default;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

tbody tr:last-child:hover {
    background: none;
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
}

th:last-child {
    padding-right: 20px !important;
}

tbody td:first-child {
    padding-left: 20px;
}

.cuisine-table tbody td:nth-child(2) {
    padding-left: 20px;
}

tbody td:last-child {
    padding-right: 20px;
}

tbody td {
    padding-top: 8px;
    padding-bottom: 8px;
}

tbody tr:last-child {
    padding-bottom: 20px;
}

.detail {
    position: absolute;
    top: 200px;
    right: 0px;
    width: 40%;
    min-width: 270px;
    max-width: 370px;
    height: 200px;
    background-size: 100% 100%;
    border-radius: 15px;
    color: #ccc;
    z-index: 10;
}

.phone .detail {
    position: fixed;
    display: none;
    width: 90%;
    left: 5%;
    top: auto;
    bottom: 5%;
    max-width: 600px;
    height: auto;
}

.phone .detail.show {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
}

#name {
    font-weight: bold;
}

.border-top {
    height: 30px;
    background-size: 100% 100%;
    background-image: url('/image/border-top.png');
    background-color: rgba(0, 0, 0, 0.6);
}

.border-mid {
    background-size: 100%;
    background-image: url('/image/border-mid.png');
    padding: 0 9%;
    background-color: rgba(0, 0, 0, 0.6);
}

.border-bottom {
    height: 22px;
    background-size: 100% 250%;
    background-image: url('/image/border-bottom.png');
    background-color: rgba(0, 0, 0, 0.6);
    background-position: bottom;
    margin-top: -2px;
}

.detail-label {
    display: inline-block;
    width: 40%;
}

.detail-value {
    display: inline-block;
    width: 55%;
}

hr {
    border-color: #888;
}

.border-mid hr {
    height: 15px;
    margin-bottom: 0;
    border-width: 1px 0px 0px 0px;
    border-color: #ccc;
}

.filter-btn {
    background: none;
    border: none;
    background-image: url('/image/filter-btn.png');
    background-size: 400% 113%;
    background-position: 100% 0%;
    width: 70px;
    height: 40px;
    color: #ccc;
    font-size: 15px;
    cursor: pointer;
}

.phone .filter-btn {
    font-size: 12px;
    width: 65px;
    height: 32px;
}

.filter-btn.size2 {
    width: 100px;
}

.phone .filter-btn.size2 {
    width: 80px;
}

.filter-btn.size3 {
    width: 130px;
}

.phone .filter-btn.size3 {
    width: 110px;
}

.filter-btn.selected {
    font-weight: bold;
    color: #333;
    background-position: 66.6666% 0%;
}

.filter-btn.apply-filter.selected, .filter-btn.feature-filter.green.selected {
    background-position: 33.3333% 0%;
    color: #006600;
}

.filter-btn.feature-filter.selected {
    background-position: 0% 0%;
    color: #660000;
}

.suite {
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
    font-weight: bold;
    color: #ccc;
}

.lefthand {
    color: #AAFFAA;
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
}

.twohand {
    color: #FFAAAA;
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
}

.steel {
    color: #AAA;
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
}

.special {
    color: #AAAAFF;
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
}

.pet-attr {
    color: #AAAAFF;
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
    width: 200%;
    display: inline-block;
}

.light_ob {
    color: yellow;
    text-shadow: 0px 0px 10px #fff, 0px 0px 10px #fff;
}

.is_magic_weapon {
    color: #ff42f5;
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
}

.positive {
    color: #64e544;
}

.negative {
    color: #ff5070;
}

.other {
    color: white;
    text-shadow: 0px 0px 10px #222, 0px 0px 10px #222;
}

.filter-container {
    display: none;
    text-align: center;
}

.footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-size: contain;
    background-image: url('/image/footer.png');
    z-index: -1;
    margin-top: 50px;
}

#toggle-filter-btn {
    display: none;
}

.phone #toggle-filter-btn {
    display: block;
    margin: 0 auto;
}

.phone-filter-container {
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.85);
    width: 100%;
    height: 100%;
    z-index: 5;
    display: none;
}

.phone .phone-filter-container.show {
    display: block;
}

.filter-title {
    text-align: center;
    margin-top: 6%;
    margin-bottom: 6%;
}

.phone .type-filter+br+.apply-filter {
    margin-top: 5%;
}

th:nth-child(2), th:nth-child(3), th:nth-child(4), th:nth-child(5), th:nth-child(6), th:nth-child(7) {
    padding: 0 5px;
    white-space: nowrap;
}

.cuisine-table th:nth-child(2) {
    padding-top: 12px;
    padding-bottom: 12px;
}

.info {
    text-align: center;
}

.room-long a {
    color: #abcdef;
    text-decoration: underline;
    font-weight: bold;
}

.room-long a:hover {
    color: #6789ab;
}

.room-desc {
    display: none;
}

.room-short {
    color: #f3df00;
    margin-top: 10px;
    margin-bottom: 10px;
}

.room-long {
    color: #ffffff;
}

.select-style {
    position: fixed;
    z-index: 1;
    top: 10px;
    right: 0%;
    width: 15%;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    background-image: url('/image/menu-btn.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.select-style select {
    padding: 5px 8px;
    width: 130%;
    height: 100%;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: rgba(0, 0, 0, 0);
}

.select-style select:focus {
    outline: none;
}

.footer-text {
    margin-top: 100px;
    text-align: center;
}

.footer-text a {
    color: #abcdef;
    text-decoration: underline;
    font-weight: bold;
}

.footer-text a:hover {
    color: #6789ab;
}

.room-long a {
    color: #abcdef;
    text-decoration: underline;
    font-weight: bold;
}

.room-long a:hover {
    color: #6789ab;
    color: #ffffff;
}

.phone .room-desc {
    display: none;
}

.room-short {
    color: #f3df00;
    margin-top: 10px;
    margin-bottom: 10px;
}

.room-long {
    color: #ffffff;
}

.brief-desc {
    display: none;
}

.phone .brief-desc {
    display: block;
}

.room-object .mob {
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.appearance {
    margin-bottom: 15px;
    word-break: keep-all;
}

.brew-map {
    position: relative;
    top: 5px;
    white-space: pre;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    width: fit-content;
}

/* 詳情面板的跨域動作鈕(mob「查看尋找方式」→ worldmap ?find=;未來 eq/wp 取得方式同款) */
.find-row {
    margin: 8px 0 2px;
    line-height: 1.6;
}

.find-link {
    display: inline-block;
    color: #abcdef;
    text-decoration: none;
    font-size: 15px;
}

.find-link:hover {
    color: #ffffff;
}

/* 合成來源:配方文字,非按鈕 */
.craft-src {
    color: #b9c9bd;
    font-size: 1em;
    line-height: 1.5;
}

/* 取得方式句子內的人名:inline 文字連結(非按鈕),同 #abcdef */
.find-name {
    color: #abcdef;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 3px 7px;
    display: inline-block;     /* 整顆膠囊當一個單位 */
    white-space: nowrap;       /* 單一連結文字不被中間截斷,換行只發生在膠囊之間的「、」 */
}

.find-name:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 所有可點連結統一 #abcdef:蓋掉名稱自身色碼(getColoredName 內層 span),讓使用者一眼看出哪邊可點 */
.find-name, .find-name * {
    color: #abcdef !important;
}

.find-name:hover, .find-name:hover * {
    color: white !important;
}

/* 長來源列表:展開/收合切換 + 可捲動清單(避免雜訊撐大面板) */
.acq-toggle {
    color: #abcdef;
    cursor: pointer;
    white-space: nowrap;
}

.acq-toggle:hover {
    color: white;
}

.acq-scroll {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 2px 8px;
    border-left: 2px solid #2a3a30;
    line-height: 1.5;
}

/* 合成配方頁:搜尋框 + 提示 + 表格欄位 */
.recipe-search {
    text-align: center;
    margin-bottom: 10px;
}

.recipe-search input {
    width: 60%;
    min-width: 280px;
    padding: 8px 12px;
    background: #0a120c;
    border: 1px solid #1f3325;
    border-radius: 8px;
    color: #cce;
    font-size: 15px;
}

#recipeNotice {
    text-align: center;
    color: #abcdef;
    margin-bottom: 8px;
    min-height: 1em;
}

.rc-prod, .rc-mat {
    text-align: left;
    line-height: 2;
}

.rc-prod {
}

/* 通用物品/素材頁 */
.mat-block {
    max-width: 560px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    padding: 16px 22px;
    color: #ccc;
    line-height: 1.7;
}

.mat-none {
    color: #6f8a78;
    text-align: center;
    padding: 8px 0;
}

/* 物品/素材詳情面板:與 .detail 詳情面板一致(同位置、同邊框裝飾框);預設隱藏,點材料淡入,可下鑽 */
#matPanel {
    position: absolute;
    top: 200px;
    right: 0;
    width: 40%;
    min-width: 270px;
    max-width: 370px;
    z-index: 50;
    color: #ccc;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s;
    font-size: 15px;
}

#matPanel.show {
    opacity: 1;
    visibility: visible;
}

.phone #matPanel.show {
    backdrop-filter: brightness(0.2);
}

#matPanel .border-mid {
    padding: 4px 9% 8px;
}

.mat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 2px;
}

.mat-title {
    font-weight: bold;
    color: #ccc;
}

.mat-long {
    color: #cccccc;
    line-height: 1.2;
    padding: 2px 0 4px;
}

.mat-btn {
    cursor: pointer;
    color: #333333;
    font-size: 13px;
    user-select: none;
    white-space: nowrap;
    background: #AAAAAA;
    width: 21px;
    height: 21px;
    line-height: 21px;
    text-align: center;
    border-radius: 100px;
}

.mat-btn:hover {
    color: white;
}

/* 返回鈕顯示(下鑽後)時多一段下緣間距;hidden 狀態不套用 */
.mat-btn[style*="visible"] {
    margin-bottom: 10px;
}

#matPanel-back {
    width: 60px;
}

#matPanel-body {
    max-height: 50vh;
    overflow-y: auto;
}

@media (max-width:920px) {
    #matPanel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #matPanel-body {
        max-height: 55vh;
    }

}
