/* Floralia · skill system v2 (2026-10-19): the skill card (js/skillbook.js SkillBook.cardHtml), the skill-set strip and tabs
   (js/skillsets.js), the one-time note of the new system. Colours follow the window they sit in (dark book / light book). */

/* ---- the card ---- */
.skc { display: flex; flex-direction: column; gap: 7px; font-family: var(--thai, Mali, sans-serif); }
.skc-hd { display: flex; align-items: center; gap: 10px; padding-right: 30px; }
.skc-hd > img { width: 58px; height: 58px; flex: none; border-radius: 12px; object-fit: contain; background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 2px #d9a443; }
.skc-tt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.skc-tt b { font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.skc-tt em { font-style: normal; font-size: 0.78rem; opacity: 0.78; }
.skc-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.skc-tg { display: inline-block; padding: 0 8px; border-radius: 99px; font: 700 11.5px/1.65 var(--thai, Mali, sans-serif); color: #1b1a22; }
.skc-tg.br { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px #d9a443; }
.skc-tg.t-single { background: #ff9b7a; } .skc-tg.t-aoe { background: #ffc85a; } .skc-tg.t-cc { background: #b99aff; }
.skc-tg.t-surv { background: #7fd9a4; } .skc-tg.t-buff { background: #7fc8ff; } .skc-tg.t-move { background: #dedede; }
.skc-lv { align-self: flex-start; margin-left: auto; white-space: nowrap; padding: 2px 9px; border-radius: 8px; font: 800 13px/1.5 Fredoka, Mali, sans-serif; background: rgba(217, 164, 67, 0.25); box-shadow: inset 0 0 0 1px rgba(217, 164, 67, 0.6); }
.skc-sum { font-size: 0.95rem; font-weight: 700; line-height: 1.45; }
.skc-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.skc-nums span { padding: 1px 8px; border-radius: 7px; font-size: 0.8rem; line-height: 1.6; background: rgba(127, 127, 140, 0.2); }
.skc-nums b { font-weight: 800; }
.skc-pvp { font-size: 0.8rem; font-weight: 700; color: #e86a5f; }
.skc-more summary { cursor: pointer; font-size: 0.8rem; font-weight: 700; color: #4f9be0; list-style: none; }
.skc-more summary::before { content: '▾ '; }
.skc-more[open] summary::before { content: '▴ '; }
.skc-more summary::-webkit-details-marker { display: none; }
.skc-more p b.dl { color: #f0c24b; }   /* (the short text's labels: วิธีใช้ / จุดเด่น / เคล็ดลับ gold, ข้อควรระวัง red) */
.skc-more p b.dl.warn { color: #ff6b6b; }
.skc-more p { margin: 4px 0 0; font-size: 0.8rem; line-height: 1.55; opacity: 0.9; white-space: pre-line; }   /* (the long text: a line a point - "desc" lines split by a new line) */
.skc-lock { padding: 7px 10px; border-radius: 10px; font-size: 0.84rem; font-weight: 700; background: rgba(127, 127, 140, 0.18); }
.skc .sb-bts { margin-top: 0; }
.skc-up.sk-up { margin-top: 2px; }
#sbook .eco-side .skc { padding: 4px 2px; }
.sb-cbooks span small { white-space: nowrap; }

/* ---- the skill-set strip over the skill bar ---- */
#sk2-strip { position: fixed; z-index: 30; display: flex; gap: calc(4px * var(--u, 1)); pointer-events: auto; }
#sk2-strip button { flex: 1; min-width: 0; height: calc(24px * var(--u, 1)); padding: 0 calc(6px * var(--u, 1)); border-radius: calc(8px * var(--u, 1)); border: 1px solid rgba(233, 196, 106, 0.45); background: rgba(16, 14, 24, 0.72);
  color: #e9e0c8; font: 700 calc(12px * var(--u, 1))/calc(22px * var(--u, 1)) var(--thai, Mali, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
#sk2-strip button.on { background: linear-gradient(#5a4520, #3a2c14); border-color: #e9c46a; color: #ffe39a; }
#sk2-strip button:hover { filter: brightness(1.15); }
#sk2-strip.busy button:not(.on) { opacity: 0.55; }

/* ---- the K window: the three sets over the slots ---- */
.sk2-sets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font: 700 13px var(--thai, Mali, sans-serif); }
.sk2-sets > span { opacity: 0.8; }
.sk2-sets button { padding: 3px 12px; border-radius: 9px; border: 1px solid rgba(217, 164, 67, 0.55); background: rgba(0, 0, 0, 0.18); color: inherit; font: inherit; cursor: pointer; }
.sk2-sets button.on { background: linear-gradient(#e9c46a, #c99a3a); color: #2a1d06; border-color: #a77a26; }
.sk2-sets em { font-style: normal; font-weight: 600; font-size: 12px; opacity: 0.75; margin-left: auto; }

/* ---- the one-time note ---- */
.sk2-note { display: flex; align-items: center; justify-content: center; z-index: 60; }
.sk2-note-in { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.sk2-note-in h2 { margin: 0; }
.sk2-note-in h3 { margin: 4px 0 0; font-size: 1rem; }
.sk2-rules { margin: 0; padding-left: 20px; line-height: 1.6; font-size: 0.92rem; }
.sk2-rows { display: flex; flex-direction: column; gap: 3px; }
.sk2-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(127, 127, 140, 0.16); font-size: 0.88rem; }
.sk2-rows > div > span:last-child { font-weight: 700; text-align: right; }
.sk2-ok { align-self: center; min-width: 180px; }

/* (the K window's card sits in .tip, a two-column grid made for the old icon + text: the new card spans it) */
.tip > .skc, .tip > .sk-act, .tip > .sk-one { grid-column: 1 / -1; }
#tree .tip .skc-tt b { color: #fff3d0; }
#tree .tip .skc-sum { color: #eef1fb; }

/* (the raise button in the skill-book window: the K window's green button, which css/style.css keeps to #tree) */
#sbook .skc-up { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: rgba(139, 227, 123, 0.1); border: 1px solid rgba(139, 227, 123, 0.4); }
#sbook .skc-up .sk-up-go { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; border-radius: 12px; border: 2px solid #2f6a22; cursor: pointer;
  background: linear-gradient(#8fe06a, #4fb43a 55%, #3b9a2c); box-shadow: 0 0 0 2px #e9ffd2 inset, 0 3px 0 #1f4a16; font: 800 16px var(--thai, Mali, sans-serif); color: #fff; }
#sbook .skc-up .sk-up-go > span { color: #fff; text-shadow: 0 1px 0 #24521a; }
#sbook .skc-up .sk-up-go > b { padding: 3px 10px; border-radius: 999px; background: rgba(20, 50, 12, 0.55); font: 800 14px/1 Fredoka, sans-serif; color: #fff6b0; }
#sbook .skc-up .sk-up-go:disabled { cursor: default; background: linear-gradient(#a7aea6, #7d857c 60%, #6a7169); border-color: #3e443d; box-shadow: none; }
#sbook .skc-up em { font-style: normal; font-size: 0.8rem; color: #ff9a9a; }

/* 2026-10-19 later: skill points (a level) + the plus (materials) - js/skillbook.js pointsHtml / plusHtml */
.sb-pts { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; width: 100%; font-size: 0.82rem; }
.sb-pts b { font-size: 1rem; color: #ffd76a; }
.sb-pts small { opacity: 0.8; font-size: 0.72rem; }
.skc-plus.sk-up { margin-top: 6px; }
#sbook .skc-plus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 215, 106, 0.08); border: 1px solid rgba(255, 215, 106, 0.4); }
.sk-up-go.plus { gap: 8px; }
.sk-up-go.plus > span { color: #ffe9a8; }
.sk-up-go.plus > b { margin-left: 6px; }
.skc-plus-n { font-style: normal; color: #ffd76a; font-weight: 800; }
