/* "อาชีพ & สกิล" page (jobs.php) - uses the tokens of theme.css */
.jobs-sec { padding-top: 36px; }
.line-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.line-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: #d9d0f7; font: 500 14px/1 'Prompt', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.line-tab:hover { background: rgba(255, 255, 255, .08); }
.line-tab.on { background: linear-gradient(135deg, rgba(139, 92, 246, .45), rgba(217, 70, 239, .3)); border-color: rgba(200, 180, 255, .55); color: #fff; box-shadow: 0 6px 18px rgba(139, 92, 246, .3); }
.line-tab .em { font-size: 17px; }
.line-card { margin-top: 14px; }
.line-head { display: flex; gap: 16px; align-items: flex-start; }
.line-head h2 { font-size: 22px; margin: 0 0 4px; }
.line-head p { margin: 0; }
.em-big { font-size: 38px; line-height: 1; filter: drop-shadow(0 0 12px rgba(168, 85, 247, .6)); }
.builds { margin-top: 16px; background: rgba(0, 0, 0, .18); }
.build-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 14px; }
.build { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.build h4 { margin: 0 0 8px; font-size: 15px; color: #fff; }
.build p { margin: 8px 0 0; font-size: 13.5px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-chip { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #e9e3ff; background: rgba(139, 92, 246, .22); border: 1px solid rgba(168, 138, 255, .3); }
.stat-chip.gold { color: var(--gold); background: var(--gold-soft); border-color: rgba(242, 194, 91, .35); }
.build-skills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.build-skills img { width: 26px; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .06); padding: 1px; }
.job-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); margin: 18px 0 22px; }
.jp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; font-family: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.jp:hover { transform: translateY(-2px); border-color: rgba(168, 138, 255, .4); }
.jp.on { border-color: rgba(242, 194, 91, .7); box-shadow: 0 0 0 1px rgba(242, 194, 91, .4), 0 10px 26px rgba(124, 58, 237, .35); }
.jp b { font-size: 13.5px; text-align: center; line-height: 1.25; }
.jp-art { height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.jp-noimg { width: 48px; height: 80px; }
/* walking sprite: an animation strip from the web panel, played with steps() */
.walk { display: block; width: calc(var(--w) * var(--s)); height: calc(var(--h) * var(--s)); background-repeat: no-repeat;
  background-size: calc(var(--w) * var(--n) * var(--s)) calc(var(--h) * var(--s)); image-rendering: pixelated; animation: walk var(--t) steps(var(--n)) infinite; }
@keyframes walk { to { background-position: calc(var(--w) * var(--n) * var(--s) * -1) 0; } }
.tier { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: #d9d0f7; background: rgba(255, 255, 255, .05); white-space: nowrap; }
.tier.t-second { color: #93c5fd; border-color: rgba(147, 197, 253, .35); }
.tier.t-trans { color: #f0abfc; border-color: rgba(240, 171, 252, .35); }
.tier.t-third { color: #fdba74; border-color: rgba(253, 186, 116, .35); }
.tier.t-fourth { color: var(--gold); border-color: rgba(242, 194, 91, .45); background: var(--gold-soft); }
.job-detail { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .job-detail { grid-template-columns: 300px 1fr; } .jd-side { position: sticky; top: 86px; } }
.jd-side { text-align: center; }
.jd-art { height: 280px; display: flex; align-items: flex-end; justify-content: center; margin: -6px -6px 12px; border-radius: 12px;
  background: radial-gradient(55% 22% at 50% 92%, rgba(139, 92, 246, .55), transparent 70%), radial-gradient(60% 60% at 50% 40%, rgba(124, 58, 237, .18), transparent 75%); }
.jd-side h2 { font-size: 24px; margin: 0 0 6px; }
.lineage { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 14px 0 10px; font-size: 13px; color: var(--muted); }
.lineage .me { color: var(--gold); font-weight: 600; }
.lineage i { font-style: normal; opacity: .6; }
.small { font-size: 13px; }
.sk-group + .sk-group { margin-top: 22px; }
.sk-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sk-group-head h3 { margin: 0; font-size: 17px; }
.sk-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  text-align: left; cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s; }
.sk:hover { border-color: rgba(168, 138, 255, .45); background: rgba(40, 26, 84, .85); }
.sk img { width: 32px; height: 32px; flex: none; border-radius: 7px; background: rgba(255, 255, 255, .06); padding: 2px; }
.sk-t { display: flex; flex-direction: column; min-width: 0; }
.sk-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-t small { font-size: 12px; color: var(--muted); }
.sk-t em { font-style: normal; color: var(--gold); }
.sk-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 14, .72); backdrop-filter: blur(4px); }
.sk-modal[hidden] { display: none; }
.sk-modal-box { position: relative; width: min(620px, 100%); max-height: 86vh; overflow: auto; padding: 24px; border-radius: 18px; background: #150d2e; border: 1px solid rgba(168, 138, 255, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sk-close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sk-close svg { width: 18px; height: 18px; }
.sk-m-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-right: 30px; }
.sk-m-head img { width: 48px; height: 48px; border-radius: 10px; background: rgba(255, 255, 255, .06); padding: 4px; }
.sk-m-head h3 { margin: 0 0 6px; font-size: 20px; }
.sk-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-req { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.req-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #e9e3ff; font: inherit; font-size: 12.5px; cursor: pointer; }
.req-chip img { width: 20px; height: 20px; }
.sk-desc { font-size: 14px; line-height: 1.7; color: #e4ddfb; border-top: 1px solid var(--line); padding-top: 12px; }
.sk-desc p { margin: 0 0 6px; }
body.modal-open { overflow: hidden; }
