/* Floralia · the skill page (K), full screen - js/skillpage.js (2026-10-19; the first layout, dressed up: "เอาแบบเดิมแต่ปรับให้สวยขึ้น") */
#skp { position: fixed; inset: 0; z-index: 60; display: flex; background: rgba(6, 4, 12, 0.78); }
#skp[hidden] { display: none; }
#skp .skp-in { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 12px 16px 10px; box-sizing: border-box; color: #f3ead6; font-size: 14px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 200, 110, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(140, 90, 200, 0.10), transparent 70%),
    linear-gradient(180deg, #221a2c 0%, #16111e 55%, #100c16 100%);
  border: 2px solid #c9a24a; box-shadow: inset 0 0 0 4px #1a1320, inset 0 0 0 5px #6a5026, inset 0 0 60px rgba(0, 0, 0, 0.55); }
#skp button { font: inherit; color: inherit; cursor: pointer; }
#skp ::-webkit-scrollbar { width: 8px; }
#skp ::-webkit-scrollbar-thumb { background: #5a4320; border-radius: 8px; }

/* ---- top ---- */
.skp-top { display: flex; align-items: center; gap: 12px; padding: 2px 4px 10px; border-bottom: 1px solid rgba(201, 162, 74, 0.45); }
.skp-top h2 { margin: 0; font-size: 1.6rem; color: #ffe08a; text-shadow: 0 2px 0 #3a2410; letter-spacing: 0.02em; }
.skp-top h2 small { font-size: 0.85rem; color: #cfc4a8; font-weight: 400; margin-left: 8px; text-shadow: none; }
.skp-top .skp-pts { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 14px; border-radius: 99px; background: linear-gradient(180deg, #4a3614, #2c2010); border: 1px solid #e0b858; box-shadow: 0 0 12px rgba(255, 210, 100, 0.25); }
.skp-top .skp-pts b { font-size: 1.2rem; color: #ffd76a; }
#skp .sb-pill { display: flex; gap: 8px; }
#skp .sb-pill > span { display: flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: #241b2c; border: 1px solid #5a4320; }
#skp .sb-pill img { width: 22px; height: 22px; object-fit: contain; }
#skp .sb-pill b { font-size: 0.85rem; }
.skp-sp { flex: 1; }
.skp-btn { padding: 7px 14px; border-radius: 10px; border: 1px solid #8a6a2e; background: linear-gradient(180deg, #34283c, #241b2c); }
.skp-btn:hover { border-color: #e0b858; }
.skp-btn.warn { border-color: #ff8a5a; background: #4a2420; color: #ffd2c0; }
.skp-x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #c9a24a; background: linear-gradient(180deg, #4a3418, #2a1c0c); font-size: 1.1rem; color: #ffe08a; }

/* ---- body: branches · skills · the picked skill ---- */
.skp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr) 390px; gap: 14px; padding: 12px 0 10px; }
.skp-left, .skp-mid, .skp-right { min-height: 0; overflow-y: auto; }
.skp-left { display: flex; flex-direction: column; gap: 10px; }
.skp-cls { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #34283c, #1f1826); border: 1px solid #6a5026; }
.skp-cls img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.skp-cls b { display: block; font-size: 1.15rem; color: #ffe08a; }
.skp-cls small { color: #cfc4a8; }
.skp-brs { display: flex; flex-direction: column; gap: 6px; }
.skp-br { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid #3c2f45; background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 14%, #1f1826), #1f1826 70%); }
.skp-br:hover { border-color: var(--bc); }
.skp-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--bc); box-shadow: 0 0 8px var(--bc); }
.skp-bt { flex: 1; min-width: 0; }
.skp-bt b { display: block; font-size: 0.95rem; }
.skp-bt small { color: #cfc4a8; font-size: 0.74rem; }
.skp-pips { display: inline-flex; gap: 3px; flex: none; }
.skp-pips i { width: 8px; height: 8px; border-radius: 50%; background: #3a3042; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.skp-pips i.mark { box-shadow: inset 0 0 0 1px rgba(255, 215, 106, 0.6); }
.skp-pips i.on { background: var(--bc); box-shadow: 0 0 6px var(--bc); }
.skp-help { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 12px; background: #19131f; border: 1px dashed #4a3a52; font-size: 0.78rem; color: #cfc4a8; }
.skp-help .skp-up.s { position: static; display: inline-block; vertical-align: middle; margin-right: 2px; }

/* ---- the skills ---- */
.skp-mid { display: flex; flex-direction: column; gap: 14px; padding-right: 6px; scroll-behavior: smooth; }
.skp-sec { position: relative; border-radius: 16px; padding: 12px 14px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 10%, #211a29) 0%, #1c1623 60px); border: 1px solid color-mix(in srgb, var(--bc) 45%, #3c2f45); }
.skp-sec > header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.skp-band { width: 6px; align-self: stretch; border-radius: 4px; background: linear-gradient(180deg, var(--bc), transparent); }
.skp-sec > header b { display: block; font-size: 1.2rem; color: var(--bc); text-shadow: 0 1px 0 #000; }
.skp-sec > header small { color: #d8ccb0; font-size: 0.82rem; }
.skp-bn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); font-size: 0.78rem; color: #a99fb5; }
.skp-bn span b { margin-right: 4px; padding: 0 6px; border-radius: 6px; background: #2c2434; color: #cfc4a8; }
.skp-bn span.ok { color: #fff3cf; }
.skp-bn span.ok b { background: var(--bc); color: #1a1208; }
.skp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.skp-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; min-height: 68px; text-align: left; border-radius: 12px; overflow: visible;
  border: 1px solid #3c2f45; background: linear-gradient(135deg, #2a2132, #1f1827); transition: transform 0.08s, border-color 0.12s; }
.skp-card::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--bc); opacity: 0.55; }
.skp-card:hover { border-color: color-mix(in srgb, var(--bc) 70%, #3c2f45); transform: translateY(-1px); }
.skp-card.skp-on { border-color: #ffd76a; box-shadow: 0 0 0 2px #ffd76a inset, 0 0 16px rgba(255, 215, 106, 0.25); background: linear-gradient(135deg, #3a2e40, #241c2c); }
.skp-card.skp-eq::before { opacity: 1; width: 4px; box-shadow: 0 0 10px var(--bc); }
.skp-card.skp-off { opacity: 0.5; }
.skp-ic { position: relative; flex: none; width: 52px; height: 52px; border-radius: 11px; background: radial-gradient(circle at 50% 40%, #2c2236, #120e17); border: 1px solid #6a5026; box-shadow: inset 0 0 0 1px rgba(255, 215, 106, 0.12); }
.skp-ic img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.skp-card.t-ultimate .skp-ic { border-color: #ffd76a; box-shadow: 0 0 12px rgba(255, 215, 106, 0.45); }
.skp-key { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 6px; background: linear-gradient(180deg, #ffe9a0, #e0b04a); color: #2a1c0c; font: 800 0.74rem/20px sans-serif; text-align: center; font-style: normal; box-shadow: 0 1px 0 #3a2410; }
.skp-key.au { background: linear-gradient(180deg, #e6d2ff, #a07ae0); }
.skp-up { position: absolute; bottom: -5px; left: -5px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #8af08f, #3cb34a); color: #0d2a10; font: 800 0.62rem/18px sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 8px rgba(91, 211, 106, 0.6); }
.skp-cn { flex: 1; min-width: 0; }
.skp-cn b { display: block; font-size: 0.96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skp-cn small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #cfc4a8; font-size: 0.74rem; line-height: 1.3; }
.skp-cl { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.8rem; color: #ffe08a; font-weight: 700; }
.skp-cl em { font-style: normal; font-weight: 400; font-size: 0.66rem; padding: 1px 7px; border-radius: 99px; background: #3a2c44; color: #e6d6ff; }
.skp-cl i { font-style: normal; font-size: 0.74rem; padding: 0 6px; border-radius: 6px; background: #4a3214; color: #ffc860; }

/* ---- combos ---- */
.skp-combo { margin-top: 12px; padding: 10px 12px 12px; border-radius: 14px; background: linear-gradient(100deg, color-mix(in srgb, var(--bc) 20%, #1d1724), #1a1420 75%); border: 1px solid color-mix(in srgb, var(--bc) 55%, #3c2f45); }
.skp-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.skp-cb { padding: 2px 9px; border-radius: 99px; background: var(--bc); color: #1a1208; font-size: 0.72rem; font-weight: 800; }
.skp-ch b { color: #fff3cf; font-size: 1rem; }
.skp-ch small { color: #cfc4a8; font-size: 0.78rem; }
.skp-use { margin-left: auto; padding: 7px 14px; border-radius: 10px; border: 1px solid #7be08a; background: linear-gradient(180deg, #2f6a36, #1d4322); color: #e6ffe9; font-weight: 800; box-shadow: 0 0 10px rgba(91, 211, 106, 0.25); }
.skp-use:hover { filter: brightness(1.15); }
.skp-use:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.skp-chain { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px; }
.skp-step { display: flex; flex-direction: column; align-items: center; width: 110px; text-align: center; cursor: pointer; }
.skp-sn { position: relative; width: 52px; height: 52px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--bc), #ffe08a, var(--bc)); box-shadow: 0 0 10px color-mix(in srgb, var(--bc) 50%, transparent); }
.skp-sn img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #14101a; }
.skp-sn i { position: absolute; top: -4px; left: -4px; width: 20px; height: 20px; border-radius: 50%; background: #1a1208; border: 1px solid var(--bc); color: #ffe08a; font: 800 0.7rem/18px sans-serif; text-align: center; font-style: normal; }
.skp-step small { font-size: 0.72rem; color: #eadfc4; line-height: 1.3; margin-top: 5px; }
.skp-ar { align-self: flex-start; margin-top: 26px; width: 22px; height: 2px; background: linear-gradient(90deg, transparent, var(--bc)); position: relative; font-style: normal; }
.skp-ar::after { content: ''; position: absolute; right: -4px; top: -4px; border: 5px solid transparent; border-left-color: var(--bc); }

/* ---- the picked skill ---- */
.skp-right { padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #241c2c, #1a1420); border: 1px solid #6a5026; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35); }
.skp-empty { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 50px 10px; text-align: center; color: #cfc4a8; }
.skp-empty b { color: #fff3cf; font-size: 1.05rem; margin-bottom: 4px; }
.skp-put { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #3c2f45; }
.skp-put > b { width: 100%; color: #ffe08a; }
.skp-put button { flex: 1 1 60px; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; border: 1px solid #5a4320; background: linear-gradient(180deg, #2f2537, #221a29); font-weight: 800; }
.skp-put button:hover { border-color: #e0b858; }
.skp-put button small { font-weight: 400; font-size: 0.66rem; color: #cfc4a8; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skp-put button.on { border-color: #ffd76a; background: linear-gradient(180deg, #5a4618, #3a2c10); }
.skp-put button.out { flex: 0 0 auto; padding: 9px 14px; border-color: #ff8a5a; color: #ffd2c0; }

/* ---- the bar ---- */
.skp-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; padding: 12px 6px 2px; border-top: 1px solid rgba(201, 162, 74, 0.45); background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent); }
.skp-sets { display: flex; gap: 6px; }
.skp-sets button { padding: 7px 14px; border-radius: 10px; border: 1px solid #5a4320; background: #241b2c; }
.skp-sets button.on { border-color: #ffd76a; background: linear-gradient(180deg, #5a4618, #3a2c10); color: #fff3cf; }
.skp-bar, .skp-auras { display: flex; align-items: center; gap: 7px; padding: 10px 10px 6px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.skp-auras b { color: #c8a2ff; margin-right: 2px; }
.skp-auras small { color: #cfc4a8; font-size: 0.75rem; margin-left: 4px; }
.skp-gap { width: 12px; }
.skp-slot { position: relative; width: 60px; height: 60px; border-radius: 13px; border: 2px solid #8a6a2e; background: radial-gradient(circle at 50% 40%, #2a2132, #110d16); padding: 0; }
.skp-slot:hover { border-color: #e0b858; }
.skp-slot img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.skp-slot i { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 5px; background: linear-gradient(180deg, #ffe9a0, #e0b04a); color: #2a1c0c; font: 800 0.7rem/16px sans-serif; font-style: normal; }
.skp-slot.ult { border-color: #ffd76a; box-shadow: 0 0 14px rgba(255, 215, 106, 0.4); }
.skp-slot.au { width: 50px; height: 50px; border-color: #8a6ac8; color: #c8a2ff; font-size: 1.3rem; }
.skp-slot.pick { border-color: #7be08a; box-shadow: 0 0 0 3px rgba(91, 211, 106, 0.4); }

/* ---- smaller screens ---- */
@media (max-width: 1280px) { .skp-body { grid-template-columns: 210px minmax(0, 1fr) 340px; } .skp-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
@media (max-width: 960px) {
  .skp-body { grid-template-columns: 1fr; overflow-y: auto; }
  .skp-left, .skp-mid, .skp-right { overflow: visible; }
  .skp-brs { flex-direction: row; flex-wrap: wrap; }
  .skp-br { flex: 1 1 150px; }
  .skp-help, #skp .sb-pill { display: none; }
  .skp-slot { width: 46px; height: 46px; }
  .skp-top h2 { font-size: 1.2rem; }
}

/* ---- drag a skill onto a slot · point at a combo (2026-10-19) ---- */
.skp-card[draggable="true"] { cursor: grab; }
.skp-card[draggable="true"]:active { cursor: grabbing; }
#skp.skp-dragging .skp-slot { opacity: 0.45; transition: opacity 0.12s, transform 0.12s; }
#skp.skp-dragging .skp-slot.ok { opacity: 1; border-color: #7be08a; box-shadow: 0 0 0 3px rgba(91, 211, 106, 0.35), 0 0 16px rgba(91, 211, 106, 0.45); }
#skp.skp-dragging .skp-slot.over { transform: scale(1.12); box-shadow: 0 0 0 4px #7be08a, 0 0 22px rgba(91, 211, 106, 0.7); }
.skp-slot.pv { border-color: #7be08a; box-shadow: 0 0 0 3px rgba(91, 211, 106, 0.4), 0 0 14px rgba(91, 211, 106, 0.5); }
.skp-slot.pv-same { opacity: 0.55; }
.skp-ghost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: rgba(14, 30, 16, 0.82); animation: skpGhost 1s ease-in-out infinite alternate; }
.skp-ghost img { width: 100%; height: 100%; object-fit: contain; }
.skp-ghost em { font-style: normal; font-size: 0.7rem; color: #c9f7cf; }
@keyframes skpGhost { from { opacity: 0.75; } to { opacity: 1; } }
.skp-pvl { width: 100%; text-align: center; font-size: 0.82rem; color: #c9f7cf; }
.skp-pvl[hidden] { display: none; }
.skp-combo:hover { box-shadow: 0 0 0 1px #7be08a, 0 0 14px rgba(91, 211, 106, 0.25); }

/* ---- every skill on one screen (mode 'all') ---- */
.skp-mode { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: #19131f; border: 1px solid #3c2f45; margin-bottom: 4px; }
.skp-mode button { flex: 1; padding: 8px 4px; border-radius: 9px; border: none; background: transparent; font-size: 0.82rem; color: #cfc4a8; }
.skp-mode button.on { background: linear-gradient(180deg, #5a4618, #3a2c10); color: #fff3cf; font-weight: 700; box-shadow: inset 0 0 0 1px #e0b858; }
.skp-all { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: start; }
.skp-col { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 16%, #211a29), #1c1623 70px); border: 1px solid color-mix(in srgb, var(--bc) 45%, #3c2f45); }
.skp-col > header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 6px; border-bottom: 1px solid color-mix(in srgb, var(--bc) 40%, transparent); }
.skp-col > header b { color: var(--bc); font-size: 0.95rem; }
.skp-col > header small { color: #cfc4a8; font-size: 0.75rem; }
.skp-mini { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 10px; border: 1px solid #3c2f45; background: #241c2c; text-align: left; }
.skp-mini:hover { border-color: color-mix(in srgb, var(--bc) 70%, #3c2f45); }
.skp-mini.skp-on { border-color: #ffd76a; box-shadow: 0 0 0 2px #ffd76a inset; background: #33283b; }
.skp-mini.skp-eq { box-shadow: inset 3px 0 0 var(--bc); }
.skp-mini.skp-on.skp-eq { box-shadow: 0 0 0 2px #ffd76a inset, inset 5px 0 0 var(--bc); }
.skp-mini.skp-off { opacity: 0.5; }
.skp-mini[draggable="true"] { cursor: grab; }
.skp-mini .skp-ic { width: 40px; height: 40px; border-radius: 9px; }
.skp-mini.t-ultimate .skp-ic { border-color: #ffd76a; box-shadow: 0 0 10px rgba(255, 215, 106, 0.45); }
.skp-mini .skp-key { top: -5px; right: -5px; min-width: 17px; height: 17px; font-size: 0.66rem; line-height: 17px; }
.skp-mini .skp-up { width: 15px; height: 15px; font-size: 0.55rem; line-height: 15px; bottom: -4px; left: -4px; }
.skp-mn { min-width: 0; flex: 1; }
.skp-mn b { display: block; font-size: 0.82rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skp-mn small { font-size: 0.7rem; color: #ffe08a; }

/* ---- the gem grid (the user's reference: round glowing gems with names, an ornate frame, a search line) ---- */
.skp-frame { position: relative; display: flex; flex-direction: column; flex-shrink: 0; min-height: 100%; padding: 30px 18px 14px; border-radius: 10px;   /* (flex-shrink 0: the frame grows with a long list, the aura rows were left outside it - 2026-10-23, "เพิ่มกรอบของออร่าด้วย") */
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 210, 120, 0.08), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #1d1820, #121016);
  border: 2px solid #8a6a2e; box-shadow: inset 0 0 0 3px #19141c, inset 0 0 0 4px #5a4320, inset 0 0 40px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.5); }
.skp-frame::before, .skp-frame::after { content: ''; position: absolute; width: 26px; height: 26px; border: 3px solid #c9a24a; pointer-events: none; }
.skp-frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.skp-frame::after { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }
.skp-plate { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 5px 34px 4px; border-radius: 8px;
  background: linear-gradient(180deg, #5a4220, #2c1e0c); border: 1px solid #e0b858; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 240, 200, 0.3); white-space: nowrap; }
.skp-plate span { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.08em; color: #ffe9b0; text-shadow: 0 1px 0 #1a1004; }
.skp-plate small { font-size: 0.66rem; color: #d8c08a; letter-spacing: 0.1em; }
.skp-gems { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 8px; }
.skp-gems.all { flex: 1; align-content: start; }
.skp-gem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 6px; border: none; background: transparent; text-align: center; border-radius: 12px; }
.skp-gem:hover { background: rgba(255, 255, 255, 0.04); }
.skp-orb { position: relative; width: 66px; height: 66px; border-radius: 50%; padding: 3px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--bc) 55%, #fff) 0%, var(--bc) 45%, color-mix(in srgb, var(--bc) 40%, #000) 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--bc) 55%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.35); transition: transform 0.1s, box-shadow 0.12s; }
.skp-orb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #0e0b12; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7); }
.skp-gem:hover .skp-orb { transform: scale(1.06); box-shadow: 0 0 22px var(--bc), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.skp-gem.skp-on .skp-orb { box-shadow: 0 0 0 3px #ffd76a, 0 0 24px rgba(255, 215, 106, 0.7); }
.skp-gem.skp-eq .skp-orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--bc); opacity: 0.7; }
.skp-gem.t-ultimate .skp-orb { background: radial-gradient(circle at 50% 35%, #fff6c8, #ffd76a 45%, #8a6a1a); }
.skp-gem.skp-off { opacity: 0.45; }
.skp-gem .skp-key { top: -4px; right: -6px; }
.skp-gem .skp-up { bottom: -2px; left: -4px; }
.skp-gem b { font-size: 0.8rem; line-height: 1.2; color: #f3e6c4; letter-spacing: 0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skp-gem small { font-size: 0.68rem; color: #c9a24a; }
.skp-gem.skp-on b { color: #ffe08a; }
.skp-gem[draggable="true"] { cursor: grab; }
.skp-sec .skp-gems { margin-top: 4px; }
.skp-none { grid-column: 1 / -1; text-align: center; color: #cfc4a8; padding: 30px 0; }
.skp-search { display: flex; align-items: center; gap: 8px; align-self: center; width: min(420px, 100%); margin-top: 16px; padding: 6px 14px; border-radius: 99px; background: #0e0b12; border: 1px solid #5a4320; box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6); }
.skp-search span { color: #c9a24a; font-size: 1.1rem; }
.skp-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: #f3ead6; font: inherit; font-size: 0.9rem; }
.skp-search:focus-within { border-color: #e0b858; }
.skp-br.on { border-color: var(--bc); box-shadow: inset 0 0 0 1px var(--bc); background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 26%, #1f1826), #1f1826 80%); }

/* ---- one branch picked in the overview: its words, bonus, gems, combos ---- */
.skp-frame.one { border-color: color-mix(in srgb, var(--bc) 70%, #8a6a2e); box-shadow: inset 0 0 0 3px #19141c, inset 0 0 0 4px color-mix(in srgb, var(--bc) 55%, #5a4320), inset 0 0 60px color-mix(in srgb, var(--bc) 10%, transparent), 0 6px 20px rgba(0, 0, 0, 0.5); }
.skp-frame.one .skp-plate { border-color: var(--bc); background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 45%, #2c1e0c), #20160a); }
.skp-fhead { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 16px; text-align: center; }
.skp-fhead p { margin: 0; color: #e8dcc0; font-size: 0.9rem; }
.skp-fhead .skp-bn { margin: 0; justify-content: center; background: rgba(0, 0, 0, 0.3); border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent); }
.skp-fcombos { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.skp-fcombos .skp-combo { margin-top: 0; }
.skp-fcombos .skp-use { padding: 9px 18px; font-size: 1rem; }
.skp-frame.one .skp-gems.all { flex: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.skp-frame.one .skp-orb { width: 84px; height: 84px; }
.skp-frame.one .skp-gem b { font-size: 0.9rem; }
.skp-frame .skp-search { margin-top: auto; }
.skp-frame .skp-gems.all + .skp-search, .skp-frame .skp-fcombos + .skp-search { margin-top: 18px; }
.skp-frame:not(.one) .skp-gems.all + .skp-search { margin-top: auto; padding-top: 6px; }

/* ---- polish 2026-10-19: the plate is never cut, the bonus as chips, gems lift ---- */
.skp-mid { padding-top: 22px; }
.skp-plate { top: -18px; padding: 6px 46px 5px; border-radius: 4px; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); border: none;
  background: linear-gradient(180deg, #f0cf7a 0%, #b88a34 8%, #5a4220 12%, #2c1e0c 88%, #b88a34 92%, #f0cf7a 100%); }
.skp-frame.one .skp-plate { background: linear-gradient(180deg, #f0cf7a 0%, var(--bc) 8%, color-mix(in srgb, var(--bc) 40%, #2c1e0c) 14%, #20160a 86%, var(--bc) 92%, #f0cf7a 100%); }
.skp-plate span { font-size: 1.1rem; }
.skp-fhead { margin: 10px 0 18px; }
.skp-fhead p { font-size: 0.95rem; }
.skp-bn { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; padding: 0; background: none; border: none; }
.skp-fhead .skp-bn { background: none; border: none; }
.skp-bn .bn-now, .skp-bn .bn-t { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid #3c2f45; font-size: 0.8rem; color: #a99fb5; }
.skp-bn .bn-now { color: #e8dcc0; }
.skp-bn .bn-now b { color: var(--bc); font-size: 0.95rem; }
.skp-bn .bn-t b { padding: 1px 8px; border-radius: 99px; background: #2c2434; color: #cfc4a8; font-size: 0.74rem; margin: 0; }
.skp-bn .bn-t.ok { color: #fff3cf; border-color: color-mix(in srgb, var(--bc) 60%, transparent); background: color-mix(in srgb, var(--bc) 18%, rgba(0, 0, 0, 0.35)); }
.skp-bn .bn-t.ok b { background: var(--bc); color: #1a1208; }
.skp-gem { transition: transform 0.12s; }
.skp-gem:hover { transform: translateY(-3px); background: none; }
.skp-gem:hover b { color: #fff3cf; }
.skp-orb::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 8px; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--bc) 45%, transparent), transparent 70%); }
.skp-combo { position: relative; background: linear-gradient(100deg, color-mix(in srgb, var(--bc) 18%, #17121c), #141018 80%); box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.06), 0 4px 14px rgba(0, 0, 0, 0.35); }
.skp-combo .skp-chain { justify-content: center; }

/* ===== painted title plate only (Codex, assets/ui_skillpage) - the corners / pattern / gold sockets were "ลิเกเกินไป" ===== */
.skp-plate, .skp-frame.one .skp-plate { top: -26px; width: 260px; height: 68px; padding: 0 0 2px; clip-path: none; border: none; border-radius: 0; box-shadow: none; justify-content: center;
  background: url(../assets/ui_skillpage/title_plate.png) center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55)); z-index: 3; }
.skp-plate span { font-size: 1rem; padding-top: 4px; color: #ffe9b0; text-shadow: 0 1px 0 #000; letter-spacing: 0.04em; }
.skp-plate small { font-size: 0.62rem; color: #d8c08a; }
.skp-mid { padding-top: 30px; }
.skp-frame { padding-top: 44px; }

/* ===== the right panel: raising with a point, the plus with materials (the user: "ตรงนี้ ... ออกแบบได้ดีกว่านี้อีกมาก") ===== */
#skp .skc-up.sk-up, #skp .skc-plus.sk-up { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 12px; padding: 12px 14px 14px; border-radius: 14px; position: relative;
  background: #1a1420; border: 1px solid #4a3a2a; }
#skp .skc-plus.sk-up { border-color: #4a3a5a; }
#skp .skc-up .sb-pts, #skp .skc-plus .sb-pts { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 0.95rem; color: #f3e6c4; }
#skp .skc-up .sb-pts::before { content: '▲ อัปขั้นสกิล'; width: 100%; font-size: 0.74rem; letter-spacing: 0.08em; color: #c9a24a; }
#skp .skc-plus .sb-pts::before { content: '✦ ตีบวกสกิล (ใช้วัสดุ)'; width: 100%; font-size: 0.74rem; letter-spacing: 0.08em; color: #c8a2ff; }
#skp .sb-pts b { font-size: 1.3rem; color: #ffd76a; }
#skp .skc-plus .sb-pts b { color: #e6c8ff; }
#skp .sb-pts small { color: #b8ab90; font-size: 0.75rem; }
#skp .sb-costs { display: flex; flex-wrap: wrap; gap: 6px; }
#skp .sb-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 99px; background: #0e0b12; border: 1px solid #5a4320; font-size: 0.82rem; font-weight: 700; color: #f3e6c4; }
#skp .sb-chip img { width: 24px; height: 24px; object-fit: contain; }
#skp .sb-chip.short { border-color: #b8463a; color: #ff9a8a; background: #2a0f0e; }
#skp .sk-up-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 16px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #f2cd6a, #d6a23a); color: #2e1c06; font-weight: 800; font-size: 0.98rem; box-shadow: inset 0 -2px 0 rgba(90, 50, 0, 0.35); }
#skp .sk-up-go > b { padding: 2px 10px; border-radius: 99px; background: rgba(58, 36, 8, 0.85); color: #ffe08a; font-size: 0.82rem; text-shadow: none; }
#skp .sk-up-go:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
#skp .sk-up-go.plus { background: linear-gradient(180deg, #c9a6ee, #9a6ad0); color: #1e0f30; box-shadow: inset 0 -2px 0 rgba(40, 10, 70, 0.35); }
#skp .sk-up-go.plus > b { background: rgba(36, 18, 58, 0.85); color: #e6c8ff; }
#skp .sk-up-go:disabled { filter: grayscale(0.85) brightness(0.6); cursor: default; transform: none; }
#skp .sk-up > em { font-style: normal; font-size: 0.8rem; color: #ff9a8a; text-align: center; }

/* ---- the bar, bigger (2026-10-19, the user: "ขยายให้ใหญ่ขึ้นจะได้ดูง่าย"): 84px slots with the skill's name under each ---- */
.skp-bottom { gap: 12px 30px; padding: 14px 6px 6px; }
.skp-bar, .skp-auras { gap: 10px; padding: 14px 14px 26px; border-radius: 16px; }
.skp-slot { width: 84px; height: 84px; border-radius: 16px; border-width: 3px; }
.skp-slot img { border-radius: 13px; }
.skp-slot i { top: -11px; padding: 1px 9px; font-size: 0.85rem; line-height: 18px; border-radius: 6px; }
.skp-sl { position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%); width: 96px; font-style: normal; font-size: 0.72rem; line-height: 1.2; color: #e8dcc0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.skp-slot.au { width: 70px; height: 70px; font-size: 1.6rem; }
.skp-slot.au .skp-sl { width: 80px; color: #d8c4ff; }
.skp-auras b { font-size: 1rem; }
.skp-auras small { font-size: 0.82rem; }
.skp-gap { width: 18px; }
.skp-sets { flex-direction: column; gap: 8px; }
.skp-sets button { padding: 10px 22px; font-size: 1rem; border-radius: 12px; min-width: 110px; }
@media (max-width: 1280px) { .skp-slot { width: 70px; height: 70px; } .skp-slot.au { width: 58px; height: 58px; } .skp-sl { width: 80px; } .skp-sets { flex-direction: row; } }
@media (max-width: 960px) { .skp-slot { width: 50px; height: 50px; } .skp-slot.au { width: 46px; height: 46px; } .skp-sl { display: none; } .skp-bar, .skp-auras { padding-bottom: 10px; } }
/* the bar fits the screen: the sets in a row, a little smaller slots (the user's screen cut the PvP button and the auras) */
.skp-sets { flex-direction: row; }
.skp-sets button { padding: 8px 16px; min-width: 0; font-size: 0.95rem; }
.skp-bottom { flex-wrap: wrap; gap: 8px 22px; }
.skp-slot { width: 76px; height: 76px; }
.skp-slot.au { width: 64px; height: 64px; }
.skp-sl { width: 86px; }
@media (max-width: 1400px) { .skp-slot { width: 68px; height: 68px; } .skp-slot.au { width: 58px; height: 58px; } .skp-sl { width: 76px; font-size: 0.68rem; } .skp-bar, .skp-auras { gap: 8px; padding: 12px 10px 24px; } }
@media (max-width: 960px) { .skp-slot { width: 50px; height: 50px; } .skp-slot.au { width: 46px; height: 46px; } .skp-sl { display: none; } .skp-bar, .skp-auras { padding-bottom: 10px; } }

/* ---- ten slots, any skill in any (2026-10-19) ---- */
.skp-bar.ten { gap: 8px; }
.skp-bar.ten .skp-slot.ult { margin: 0 6px; }
.skp-slot.isau { border-color: #8a6ac8; box-shadow: 0 0 12px rgba(200, 162, 255, 0.35); }
.skp-aunote { font-size: 0.82rem; color: #d8c4ff; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.3); border: 1px solid #4a3a5a; }
.skp-aunote b { color: #e6c8ff; }
@media (max-width: 1400px) { .skp-bar.ten .skp-slot { width: 62px; height: 62px; } .skp-bar.ten .skp-sl { width: 70px; } }
@media (max-width: 960px) { .skp-bar.ten .skp-slot { width: 44px; height: 44px; } }

/* ---- the combo preview: the coming skill covers the slot whole, the note floats (no jump of the bar) ---- */
.skp-ghost { background: #120e16; animation: none; }
.skp-ghost img { border-radius: 11px; }
.skp-slot.pv > img { visibility: hidden; }
.skp-slot.pv .skp-sl { color: #a8f0b0; }
.skp-bottom { position: relative; }
.skp-pvl { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: auto; white-space: nowrap; padding: 3px 14px; border-radius: 99px; background: #13261a; border: 1px solid #5bd36a; z-index: 5; }

/* ---- bigger, easier to read (2026-10-20, the user: "ขยายให้ใหญ่มองง่าย") ---- */
.skp-gems { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 22px 12px; }
.skp-orb { width: 90px; height: 90px; }
.skp-frame.one .skp-gems.all { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.skp-frame.one .skp-orb { width: 120px; height: 120px; }
.skp-gem b { font-size: 1rem; }
.skp-frame.one .skp-gem b { font-size: 1.1rem; }
.skp-gem small { font-size: 0.8rem; }
.skp-gem .skp-key { min-width: 24px; height: 24px; font-size: 0.85rem; line-height: 24px; }
.skp-gem .skp-up { width: 22px; height: 22px; font-size: 0.72rem; line-height: 22px; }
.skp-combo { padding: 14px 18px 18px; }
.skp-ch b { font-size: 1.2rem; }
.skp-ch small { font-size: 0.9rem; }
.skp-cb { font-size: 0.82rem; padding: 3px 12px; }
.skp-use, .skp-fcombos .skp-use { padding: 11px 22px; font-size: 1.1rem; }
.skp-chain { gap: 6px; }
.skp-step { width: 150px; }
.skp-sn { width: 84px; height: 84px; padding: 4px; }
.skp-sn i { width: 26px; height: 26px; font-size: 0.9rem; line-height: 22px; top: -5px; left: -5px; }
.skp-step small { font-size: 0.86rem; margin-top: 8px; }
.skp-ar { margin-top: 40px; width: 30px; }
.skp-fhead p { font-size: 1.05rem; }
.skp-bn .bn-now, .skp-bn .bn-t { font-size: 0.9rem; padding: 6px 14px; }
.skp-search { width: min(520px, 100%); padding: 9px 18px; }
.skp-search input { font-size: 1rem; }
@media (max-width: 1280px) { .skp-orb { width: 76px; height: 76px; } .skp-frame.one .skp-orb { width: 100px; height: 100px; } .skp-sn { width: 70px; height: 70px; } .skp-step { width: 126px; } }
