/* ===== Quỹ Hội + Kỹ năng Hội (23/10/2026) ===== */

  /* ===== Quỹ Hội + Kỹ năng Hội: CSS bổ sung (tiền tố fd-/sk-), dùng lại token và nút của game ===== */
    background: linear-gradient(90deg, #ffd34d, #fff1a8, #ffbf1a, #fff1a8, #ffd34d); background-size: 200% 100%; animation: fdSlide 2.4s linear infinite; box-shadow: 0 0 18px #ffd34d99, 0 3px 0 #8a5a00; }
  @keyframes fdSlide { to { background-position: 200% 0; } }

  .fd-sub { margin: 0; }
  .fd-sub.gd-sort { align-self: stretch; } .fd-sub.gd-sort button { flex: 1; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
  .fd-sub .pxi { height: 14px; }

  /* Số dư quỹ */
  .fd-bal { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--ink);
    background: linear-gradient(#fff6dc, #ffe7b8); box-shadow: 0 3px 0 #a9751a, inset 0 2px 0 #fff9; }
  .fd-bal .stack { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #271f30; border: 2px solid var(--ink); box-shadow: inset 0 -4px 0 #0005; }
  .fd-bal .stack .pxi { height: 36px; filter: drop-shadow(0 2px 0 #0006); }
  .fd-bal small { font: 800 11px var(--font); color: #7a6a5a; letter-spacing: .3px; text-transform: uppercase; }
  .fd-bal b.big { display: block; font: 800 30px/1.05 var(--display); color: #a5480a; font-variant-numeric: tabular-nums; }
  .fd-bal .sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
  .fd-float { position: absolute; right: 18px; top: 10px; font: 800 20px var(--display); color: #2e7d32; text-shadow: 0 2px 0 #fff; pointer-events: none; animation: fdFloat .9s steps(9) forwards; }
  .fd-float.neg { color: #c2352f; }
  @keyframes fdFloat { from { transform: translateY(14px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-18px); opacity: 0; } }
  .fd-pulse { animation: fdPulse .45s steps(5); }
  @keyframes fdPulse { 40% { transform: scale(1.03); box-shadow: 0 0 0 3px #ffcf33, 0 3px 0 #a9751a; } }

  /* Thẻ góp */
  .fd-give { display: grid; gap: 8px; }
  .fd-give .gd-presets { flex-wrap: wrap; } .fd-give .gd-preset { min-width: 72px; }
  .fd-amount { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .fd-amount input { width: 100%; min-height: 42px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid #c9a96c; background: #fff; font: 800 16px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
  .fd-amount input:invalid, .fd-amount.bad input { border-color: var(--red); background: #fff2f0; }
  .fd-amount .cap { font: 700 11px var(--font); color: #7a6a5a; text-align: right; white-space: nowrap; }
  .fd-err { margin: 0; font: 700 12px var(--font); color: #c2352f; }
  .fd-cap { display: grid; gap: 3px; } .fd-cap .row { display: flex; justify-content: space-between; font: 700 11px var(--font); color: #7a6a5a; }
  .fd-warn { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 6px 9px; border-radius: 10px; background: #fff3c9; border: 1.5px dashed #e6b84d; font: 600 11.5px/1.35 var(--font); color: #6a4a10; }
  .fd-warn .pxi { height: 14px; margin-top: 1px; }

  /* Người góp + danh hiệu */
  .fd-don { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; border: 1.5px solid #e6d0a0; background: #fffaf0; }
  .fd-don.me { background: #e6f7df; border-color: #8fcf86; }
  .fd-don .rk { font: 800 14px var(--display); color: #b07f00; text-align: center; } .fd-don:nth-child(n+4) .rk { color: #9a8c78; }
  .fd-don .gd-av { width: 34px; height: 34px; font-size: 15px; }
  .fd-don .nm { min-width: 0; } .fd-don .nm b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fd-don .nm .gd-progress-mini { width: 100%; margin-top: 3px; }
  .fd-don .v { display: inline-flex; align-items: center; gap: 3px; font: 800 13px var(--display); color: #a5480a; } .fd-don .v .pxi { height: 12px; }
  .fd-list { display: grid; gap: 5px; }
  .fd-don.zero { opacity: .72; } .fd-don.zero .v { color: #9a8c78; } .fd-don .nm b small { font: 600 11px var(--font); color: #9a8c78; }
  .fd-title { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; }
  .fd-title .medal { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(#e4eef6, #b9c6d3); border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 #0003; }
  .fd-title .medal .pxi { height: 22px; }

  /* Sổ quỹ */
  .fd-log { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .fd-log li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; background: #fffaf0; border: 1.5px solid #efe0bd; font-size: 12px; }
  .fd-log .amt { font: 800 12.5px var(--display); font-variant-numeric: tabular-nums; } .fd-log .in .amt { color: #2e7d32; } .fd-log .out .amt { color: #c2352f; }
  .fd-log time { display: block; font: 600 10px var(--font); color: #9a8c78; }
  .fd-log .ico { font: 800 14px var(--display); text-align: center; }

  /* Kỹ năng */
  .sk-sum { display: grid; gap: 6px; }
  .sk-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sk-filter button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border-radius: 17px; border: 1.5px solid #d9bf8a; background: #fff; font: 800 12px var(--font); color: #6a5a40; cursor: pointer; }
  .sk-filter button[aria-pressed="true"] { background: linear-gradient(#ffc04d, #ff9f1c); border-color: #c7600a; color: #fff; text-shadow: 0 1px 0 #0004; box-shadow: 0 2px 0 #a94f06; }
  .sk-filter button:active { transform: translateY(1px); }
  .sk-head { display: flex; align-items: center; gap: 6px; margin: 4px 0 -2px; font: 800 13px var(--display); color: #7a5a30; } .sk-head::after { content: ''; flex: 1; height: 2px; background: #e6d0a0; }

  .sk-job { border-color: #cf9800; background: #fffbe9; box-shadow: 0 0 0 2px #ffcf33, 0 2px 0 #b07f00; }
  .sk-job .two { display: grid; gap: 8px; margin: 8px 0 6px; }
  .sk-job .ln { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; white-space: nowrap; gap: 8px; align-items: center; font: 800 12px var(--font); }
  .sk-job .ln small { font: 700 11px var(--font); color: #6a5a40; font-variant-numeric: tabular-nums; }
  .sk-job .ln .ok { color: #2e7d32; }
  .sk-job .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .sk-job .acts .btn { min-height: 34px; flex-direction: row; gap: 4px; }
  .sk-idle { text-align: center; color: #7a6a5a; font: 700 12px var(--font); }

  .sk { position: relative; display: grid; gap: 0; border-radius: 12px; border: 1.5px solid #e6d0a0; background: #fff; box-shadow: 0 2px 0 #e6d0a0; overflow: hidden; }
  .sk-ico { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--ink); background: linear-gradient(#fff6dc, #ffe7b8); box-shadow: inset 0 -3px 0 #0002; }
  .sk-ico .pxi { height: 30px; }
  .sk-ico .cls { position: absolute; right: -6px; bottom: -6px; padding: 0 5px; border-radius: 6px; background: var(--ink); color: #ffe066; font: 800 9px/14px var(--font); }
  .sk-ico .cls.III { background: #7a3fc9; color: #fff; } .sk-ico .cls.II { background: #1f6fc4; color: #fff; }
  .sk-pips { display: inline-flex; gap: 3px; }
  .sk-pips i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid #8a7a60; background: #fff; box-shadow: inset 0 -2px 0 #0001; }
  .sk-pips i.f { background: #ffbf1a; border-color: #8a5a00; box-shadow: inset 0 -2px 0 #b07f00; } .sk-pips i.n { border-color: #1f6fc4; box-shadow: 0 0 0 1.5px #8cc2ef; }
  .sk-sw { position: relative; width: 62px; height: 30px; padding: 0; border-radius: 15px; border: 2px solid var(--ink); background: #c9c0b0; box-shadow: inset 0 2px 0 #0003; cursor: pointer; transition: background .12s; }
  .sk-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 11px; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 2px 0 #0003; transition: transform .12s; }
  .sk-sw[aria-checked="true"] { background: #5cc261; } .sk-sw[aria-checked="true"]::after { transform: translateX(32px); }
  .sk-sw:active::after { transform: translateY(1px); } .sk-sw[aria-checked="true"]:active::after { transform: translate(32px, 1px); }
  .sk-sw:disabled { filter: grayscale(.8); cursor: not-allowed; }
  .sk.on { border-color: #8fcf86; box-shadow: 0 2px 0 #6fae66; } .sk.on .sk-ico { background: linear-gradient(#e8f8e2, #c4e7a5); }
  .sk.max { border-color: #cf9800; box-shadow: 0 0 0 2px #ffcf33, 0 2px 0 #b07f00; background: #fffbe9; } .sk.max .sk-ico { background: linear-gradient(#fff1a8, #ffd34d); }
  .sk.locked .sk-ico { filter: grayscale(.8); opacity: .8; }
  .sk.levelup { animation: fdPulse .5s steps(6); }
  .sk-tiers { padding: 6px 10px 10px; background: #fffaf0; border-top: 1.5px dashed #efe0bd; overflow-x: auto; }
  .sk-tiers p { margin: 0 0 6px; font-size: 12px; color: #5a4a3a; }
  .sk-tiers table { width: 100%; border-collapse: collapse; font: 700 11.5px var(--font); font-variant-numeric: tabular-nums; min-width: 380px; }
  .sk-tiers th { padding: 3px 5px; font: 800 10px var(--font); color: #7a6a5a; text-align: right; text-transform: uppercase; letter-spacing: .3px; } .sk-tiers th:first-child, .sk-tiers th:nth-child(2), .sk-tiers td:first-child, .sk-tiers td:nth-child(2) { text-align: left; }
  .sk-tiers td { padding: 4px 5px; border-top: 1px solid #efe0bd; text-align: right; }
  .sk-tiers tr.cur td { background: #fff3c9; } .sk-tiers tr.done td { color: #2e7d32; background: #f1f9ec; } .sk-tiers tr.next td { background: #e6f4ff; }
  .sk-cmd { padding: 8px 10px 10px; border-top: 1.5px dashed #efe0bd; background: #fff9e6; display: grid; gap: 6px; }
  .sk-cmd .opts { display: flex; flex-wrap: wrap; gap: 6px; }
  .sk-cmd .opts button { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid #d9bf8a; background: #fff; font: 800 12px var(--font); color: #5a4a3a; cursor: pointer; }
  .sk-cmd .opts button[aria-pressed="true"] { background: linear-gradient(#ffc04d, #ff9f1c); border-color: #c7600a; color: #fff; text-shadow: 0 1px 0 #0004; box-shadow: 0 2px 0 #a94f06; }
  .sk-cmd .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sk-cmd .row > .btn { flex-direction: row; gap: 4px; min-height: 38px; }
  .sk-cmd p { margin: 0; font: 600 12px/1.35 var(--font); color: #5a4a3a; }
  .sk-sched { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: linear-gradient(90deg, #ffe066, #fff1a8); border: 2px solid #b07f00; font: 800 12px var(--font); color: #3a2200; }

  .fd-toast { position: fixed; z-index: 300; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: min(92vw, 460px); padding: 8px 14px; border-radius: 12px; border: 2px solid var(--ink); background: #fff8ea; color: var(--ink);
    font: 800 13px/1.3 var(--font); box-shadow: 0 3px 0 var(--ink); animation: fdToast 2.8s steps(14) forwards; pointer-events: none; }
  .fd-toast.good { background: #e6f7df; border-color: #2e7d32; box-shadow: 0 3px 0 #2e7d32; } .fd-toast.warn { background: #fff3c9; border-color: #b07f00; box-shadow: 0 3px 0 #b07f00; } .fd-toast.bad { background: #ffe5e0; border-color: #c2352f; box-shadow: 0 3px 0 #c2352f; }
  @keyframes fdToast { 0% { opacity: 0; transform: translate(-50%, -12px); } 8%, 86% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }

  @media (max-width: 520px) {
    .sk-main { grid-template-columns: 44px minmax(0, 1fr); } .sk-ico { width: 44px; height: 44px; } .sk-ico .pxi { height: 26px; }
    .sk-act { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; align-items: center; } .sk-act .btn { width: 100%; } .sk-why { max-width: none; text-align: left; }
    .fd-bal b.big { font-size: 26px; } .fd-bal .stack { width: 54px; height: 54px; }
  }
  @media (prefers-reduced-motion: reduce) { .fd-float, .fd-pulse, .sk.levelup, .mk-golden, .fd-toast { animation: none !important; } .fd-toast { opacity: 1; } .sk-sw, .sk-sw::after { transition: none; } }

  /* ===== Popup giới thiệu lần đầu (carousel 4 trang) ===== */
  .in-wrap-unused { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: rgba(20, 12, 30, .74); }
  .in-card { position: relative; width: min(420px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 0 5px 0 var(--ink); animation: inPop .22s steps(5); }
  @keyframes inPop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
  .in-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(#ffd34d, #ffbf1a); border-bottom: 2px solid var(--ink); }
  .in-new { padding: 0 7px; border-radius: 6px; background: var(--red); color: #fff; font: 800 10px/18px var(--font); letter-spacing: .5px; box-shadow: 0 2px 0 #9a1f1c; }
  .in-head h2 { flex: 1; margin: 0; font: 800 18px/1.15 var(--display); color: var(--ink); }
  .in-skip { min-height: 34px; padding: 0 10px; border-radius: 9px; border: 1.5px solid #8a5a00; background: #fff6c0; font: 800 12px var(--font); color: #5a3a00; cursor: pointer; }
  .in-skip:active { transform: translateY(1px); }
  .in-stage { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(#0000, #0004), repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 8px), #2b2233; border-bottom: 2px solid var(--ink); }
  .in-slide { display: contents; }
  .in-body { padding: 12px 14px 4px; overflow-y: auto; min-height: 0; }
  .in-kick { margin: 0 0 2px; font: 800 11px var(--font); letter-spacing: .5px; text-transform: uppercase; color: #a5480a; }
  .in-body h3 { margin: 0 0 6px; font: 800 19px/1.2 var(--display); color: var(--ink); }
  .in-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
  .in-body li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font: 600 13px/1.4 var(--font); color: var(--ink-2); }
  .in-body li::before { content: ''; width: 8px; height: 8px; margin-top: 6px; background: #ffbf1a; border: 1.5px solid #8a5a00; box-shadow: inset 0 -2px 0 #b07f00; }
  .in-body li b { color: var(--ink); }
  .in-foot { display: grid; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom) * 0); }
  .in-dots { display: flex; justify-content: center; gap: 6px; }
  .in-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
  .in-dots button::after { content: ''; width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid #8a7a60; background: #fff; }
  .in-dots button[aria-current="true"]::after { background: #ffbf1a; border-color: #8a5a00; box-shadow: inset 0 -2px 0 #b07f00; width: 14px; }
  .in-btns { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; } .in-btns .btn { min-height: 44px; flex-direction: row; gap: 6px; }
  .in-btns .btn:only-child { grid-column: 1 / -1; }
  /* minh họa từng trang */
  .in-fund { display: grid; justify-items: center; gap: 8px; }
  .in-fund .stack { display: flex; align-items: center; gap: 10px; } .in-fund .stack .pxi { height: 54px; filter: drop-shadow(0 3px 0 #0006); }
  .in-fund .stack b { font: 800 30px var(--display); color: #ffe066; text-shadow: 0 2px 0 #0008; font-variant-numeric: tabular-nums; }
  .in-fund .who { display: flex; gap: 6px; margin-top: 14px; } .in-fund .who span { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 2px solid #4a3a5a; background: #ffe7b8; font: 800 15px var(--display); color: var(--ink); }
  .in-fund .who span i { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font: 800 11px var(--font); font-style: normal; color: #8ff08f; white-space: nowrap; animation: inRise 1.6s steps(8) infinite; }
  .in-fund .who span:nth-child(2) i { animation-delay: .4s; } .in-fund .who span:nth-child(3) i { animation-delay: .8s; }
  @keyframes inRise { 0% { transform: translate(-50%, 8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, -6px); opacity: 0; } }
  .in-skills { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 10px; }
  .in-skills .t { display: grid; justify-items: center; gap: 2px; padding: 5px 8px; min-width: 94px; border-radius: 9px; border: 1.5px solid #5a4a6a; background: #3b2e48; color: #f4eefc; font: 800 10.5px var(--font); }
  .in-skills .t .pxi { height: 22px; } .in-skills .t em { font-style: normal; color: #8ff08f; }
  .in-time { display: grid; gap: 8px; justify-items: center; width: 86%; }
  .in-time .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: 100%; }
  .in-time .steps div { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 8px; background: #3b2e48; border: 1.5px solid #5a4a6a; color: #f4eefc; font: 800 11px var(--font); }
  .in-time .steps div b { font: 800 10px var(--font); color: #ffe066; }
  .in-time .steps div:last-child { background: #5a3f1a; border-color: #ffbf1a; }
  .in-time .gd-bar { width: 100%; } .in-time small { color: #c9b6e4; font: 700 11px var(--font); }
  .in-roles { display: flex; gap: 8px; align-items: stretch; }
  .in-roles .r { display: grid; justify-items: center; gap: 3px; padding: 7px 9px; width: 96px; border-radius: 10px; border: 1.5px solid #5a4a6a; background: #3b2e48; color: #f4eefc; font: 700 10.5px/1.25 var(--font); text-align: center; }
  .in-roles .r b { font: 800 12px var(--display); color: #ffe066; } .in-roles .r .pxi { height: 22px; }
  .in-here { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font: 700 11px var(--font); color: var(--muted); }
  .fd-subrow { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; align-items: stretch; }
  .fd-help { width: 40px; border-radius: 12px; border: 1.5px solid #d9bf8a; background: #fff; box-shadow: 0 2px 0 #d9bf8a; font: 800 17px var(--display); color: #a5480a; cursor: pointer; }
  .fd-help:active { transform: translateY(2px); box-shadow: none; }
  @media (max-width: 420px) { .in-skills { grid-template-columns: repeat(3, auto); gap: 6px; } .in-skills .t { min-width: 84px; padding: 4px 4px; } .in-roles .r { width: 86px; } }
  @media (max-height: 520px) { .in-stage { height: 100px; } .in-body h3 { font-size: 17px; } }
  @media (prefers-reduced-motion: reduce) { .in-card, .in-fund .who span i { animation: none !important; } }

  /* ===== Kỹ năng gọn: lưới thẻ nhỏ + bảng chi tiết trượt từ dưới ===== */
  .gd { position: relative; }
  .sk-top { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1.5px solid #e6d0a0; box-shadow: 0 2px 0 #e6d0a0; }
  .sk-top .gd-chips { flex: 1; min-width: 0; } .sk-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
  .sk-role { margin: 0; padding: 5px 10px; border-radius: 9px; background: #e6f4ff; border: 1.5px solid #8cc2ef; font: 700 11.5px var(--font); color: #2a4a66; }
  .sk-idle2 { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border-radius: 10px; border: 1.5px dashed #d9bf8a; background: #fffaf0; font: 700 12px var(--font); color: #7a6a5a; } .sk-idle2 .pxi { height: 14px; }
  .sk-job2 { display: grid; gap: 6px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid #cf9800; background: #fffbe9; box-shadow: 0 0 0 2px #ffcf33, 0 2px 0 #b07f00; }
  .sk-job2 .r1 { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .sk-job2 .mid b { display: block; margin-bottom: 4px; font: 800 13px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sk-job2 .tm { font: 800 15px var(--display); color: #a5480a; font-variant-numeric: tabular-nums; }
  .sk-job2 .r2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .sk-job2 .r2 small { font: 600 11px var(--font); color: #6a5a40; }
  .sk-job2 .r2 span { display: inline-flex; gap: 6px; } .sk-job2 .r2 .btn { flex-direction: row; gap: 4px; min-height: 32px; padding: 3px 10px; font-size: 12px; } .sk-job2 .r2 .btn .pxi { height: 11px; }
  .sk-head { margin: 2px 0 -4px; } 

  .sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  @media (min-width: 600px) { .sk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .sk-tile { position: relative; display: grid; align-content: start; gap: 3px; min-height: 108px; padding: 8px 9px 9px; text-align: left; border-radius: 12px; border: 1.5px solid #e6d0a0; background: #fff; box-shadow: 0 2px 0 #e6d0a0; font: inherit; color: var(--ink); cursor: pointer; }
  .sk-tile:active { transform: translateY(2px); box-shadow: 0 0 0 #e6d0a0; }
  .sk-t1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
  .sk-ico.sm { width: 36px; height: 36px; border-radius: 10px; } .sk-ico.sm .pxi { height: 22px; } .sk-ico.sm .cls { right: -5px; bottom: -5px; font-size: 8px; line-height: 12px; padding: 0 4px; }
  .sk-tn { display: block; margin-top: 3px; font: 800 13px/1.2 var(--display); overflow-wrap: anywhere; }
  .sk-tile .sk-pips i { width: 9px; height: 9px; }
  .sk-tf { font: 800 12px/1.25 var(--font); color: #2e6b2a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .sk-tf.none { color: #9a8c78; font-weight: 700; }
  .sk-bd { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 6px; background: #f1ece2; border: 1.5px solid #d8ccb6; font: 800 10px/16px var(--font); color: #7a6f60; white-space: nowrap; } .sk-bd .pxi { height: 10px; }
  .sk-bd.on { background: #e6f7df; border-color: #8fcf86; color: #2e6b2a; } .sk-bd.off { background: #f1ece2; }
  .sk-bd.max { background: #ffd34d; border-color: #b07f00; color: #3a2200; } .sk-bd.build { background: #fff3c9; border-color: #e6b84d; color: #8a5a10; } .sk-bd.lock { background: #ece8f2; border-color: #c4bbd4; color: #5a4a7a; }
  .sk-up { position: absolute; right: -6px; top: -8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #43a047; border: 2px solid #1b5e20; color: #fff; font: 800 13px/1 var(--display); font-style: normal; box-shadow: 0 2px 0 #1b5e20; }
  .sk-tile.on { border-color: #8fcf86; box-shadow: 0 2px 0 #6fae66; } .sk-tile.on .sk-ico { background: linear-gradient(#e8f8e2, #c4e7a5); }
  .sk-tile.max { border-color: #cf9800; background: #fffbe9; box-shadow: 0 0 0 2px #ffcf33, 0 2px 0 #b07f00; } .sk-tile.max .sk-ico { background: linear-gradient(#fff1a8, #ffd34d); }
  .sk-tile.busy { border-color: #e6b84d; background: #fffbe9; } .sk-tile.locked { background: #f8f4ec; } .sk-tile.locked .sk-ico, .sk-tile.locked .sk-tn { filter: grayscale(.7); opacity: .75; }
  .sk-tile.sel { outline: 3px solid #1e88e5; outline-offset: 1px; }
  .sk-tile.fd-pulse { animation: fdPulse .45s steps(5); }

  .sk-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(20, 12, 30, .55); }
  .sk-sheet { position: absolute; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 10px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--ink); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 0 #0003; animation: skUp .18s steps(5); }
  @keyframes skUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .sk-sh-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
  .sk-sh-t { display: grid; gap: 3px; min-width: 0; } .sk-sh-t b { font: 800 17px/1.15 var(--display); } .sk-sh-t small { font: 700 11px var(--font); color: #7a6a5a; }
  .sk-sheet .pp-x { width: 36px; height: 36px; }
  .sk-sh-desc { margin: 0; font: 600 12.5px/1.4 var(--font); color: #5a4a3a; }
  .sk-fxrow { display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid; }
  .sk-fxrow small { font: 800 10.5px var(--font); letter-spacing: .3px; text-transform: uppercase; } .sk-fxrow b { font: 800 14px/1.25 var(--font); }
  .sk-fxrow.now { background: #e6f7df; border-color: #8fcf86; color: #2e6b2a; } .sk-fxrow.now small { color: #4a8a44; }
  .sk-fxrow.nxt { background: #e6f4ff; border-color: #8cc2ef; color: #1c4a78; } .sk-fxrow.nxt small { color: #4a7aa8; }
  .sk-needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sk-needs > div { display: grid; gap: 1px; justify-items: start; padding: 6px 8px; border-radius: 10px; border: 1.5px solid; min-width: 0; }
  .sk-needs small { font: 700 10px var(--font); } .sk-needs b { display: inline-flex; align-items: center; gap: 3px; font: 800 13.5px var(--display); font-variant-numeric: tabular-nums; } .sk-needs b .pxi { height: 12px; } .sk-needs i { font: 800 10.5px var(--font); font-style: normal; }
  .sk-needs .ok { background: #f1f9ec; border-color: #b9dfb0; color: #2e6b2a; } .sk-needs .no { background: #fff2ee; border-color: #f0b8a8; color: #b0330f; }
  .sk-sheet .btn.big { width: 100%; min-height: 46px; flex-direction: row; gap: 6px; }
  .sk-why2 { margin: 0; text-align: center; font: 700 12px var(--font); color: #b0600a; }
  .sk-doneline { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 8px; border-radius: 10px; background: #fffbe9; border: 1.5px solid #e6b84d; font: 800 12.5px var(--font); color: #7a5a10; } .sk-doneline .pxi { height: 14px; }
  .sk-swrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1.5px solid #e6d0a0; }
  .sk-swrow b { display: block; font-size: 13px; } .sk-swrow small { display: block; font-size: 11px; color: #7a6a5a; }
  .sk-sheet .sk-cmd { border: 1.5px solid #e6d0a0; border-radius: 10px; }
  .sk-tiers2 { border: 1.5px solid #e6d0a0; border-radius: 10px; background: #fff; } .sk-tiers2 summary { min-height: 38px; display: flex; align-items: center; padding: 0 10px; font: 800 12px var(--font); color: #6a5a40; cursor: pointer; }
  .sk-tiers2 .tbl { overflow-x: auto; padding: 0 8px 8px; } .sk-tiers2 table { width: 100%; min-width: 340px; border-collapse: collapse; font: 700 11.5px var(--font); font-variant-numeric: tabular-nums; }
  .sk-tiers2 th { padding: 3px 4px; font: 800 10px var(--font); color: #7a6a5a; text-align: right; text-transform: uppercase; } .sk-tiers2 th:first-child, .sk-tiers2 th:nth-child(2), .sk-tiers2 td:first-child, .sk-tiers2 td:nth-child(2) { text-align: left; }
  .sk-tiers2 td { padding: 4px; border-top: 1px solid #efe0bd; text-align: right; } .sk-tiers2 tr.done td { color: #2e7d32; background: #f1f9ec; } .sk-tiers2 tr.next td { background: #e6f4ff; }
  @media (max-width: 380px) { .sk-needs b { font-size: 12.5px; } .sk-tn { font-size: 12.5px; } }
  @media (prefers-reduced-motion: reduce) { .sk-sheet, .sk-tile.fd-pulse { animation: none; } }

  /* popup giới thiệu trong UI.dialog (game) + nút nền tối của bảng chi tiết kỹ năng */
  .modal.in-modal { padding: 0; overflow: hidden; width: min(420px, 100%); background: var(--paper); }
  .modal.in-modal .in-card { width: auto; max-height: calc(100dvh - 24px); border: 0; border-radius: 0; box-shadow: none; animation: none; }
  .sk-scrim { border: 0; padding: 0; margin: 0; cursor: default; width: 100%; height: 100%; }

