/* =====================================================================
 * hud_v11.css — แถบ HUD ล่างแบบใหม่ : สถานะ 25 | สกิล 35 | คอนเทนต์ 60
 * ===================================================================== */
#hud.hx { height: 102px; padding: 8px 10px 16px; gap: 0; align-items: stretch; background: linear-gradient(180deg, rgba(20, 15, 38, .95), rgba(7, 5, 15, .98)); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 -12px 30px rgba(0, 0, 0, .45); }
#hud.hx::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #ff4fa3 20%, #4fd8ff 80%, transparent); opacity: .8; }
.hx-sec { position: relative; min-width: 0; display: flex; align-items: center; padding: 0 12px; }
.hx-sec + .hx-sec::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, .14), transparent); }
.hx-stat { flex: 25 1 0; gap: 10px; }
.hx-skill { flex: 35 1 0; justify-content: center; }
.hx-content { flex: 60 1 0; gap: 8px; align-items: stretch; }

/* ---------- สถานะ ---------- */
#hud.hx .hud-lv { flex: none; width: 58px; height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; background: linear-gradient(145deg, #ff4fa3, #7b2cff); color: #fff; box-shadow: 0 4px 14px rgba(255, 79, 163, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
#hud.hx .hud-lv span { font-size: 10px; opacity: .85; letter-spacing: 1px; color: #fff; }
#hud.hx .hud-lv b { font-size: 26px; line-height: 1; font-family: "Press Start 2P", "Cinzel", monospace; font-size: 20px; margin-top: 3px; }
.hx-idbars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
#hud.hx .hud-id { display: flex; align-items: baseline; gap: 8px; line-height: 1; white-space: nowrap; overflow: hidden; }
#hud.hx #hud-name { font-size: 14px; font-weight: 800; letter-spacing: .3px; }
#hud.hx #hud-job { font-size: 10px; color: #a79fc7; text-transform: uppercase; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; }
#hud.hx .hud-bars { width: auto; gap: 5px; }
#hud.hx .bar label { width: 22px; font-size: 10px; color: #a79fc7; }
#hud.hx .track { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 0; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
#hud.hx .track span { line-height: 16px; font-size: 10px; }
#hud.hx .hp .fill { background: linear-gradient(90deg, #ff2d55, #ff6b8a); border-radius: 8px; box-shadow: 0 0 10px rgba(255, 45, 85, .45); }
#hud.hx .mp .fill { background: linear-gradient(90deg, #3b6bff, #4fd8ff); border-radius: 8px; box-shadow: 0 0 10px rgba(79, 216, 255, .4); }

/* ---------- สกิล (ปุ่มลัด) ---------- */
#hud.hx #hotbar { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(8, minmax(0, 38px)); grid-auto-rows: auto; justify-content: center; gap: 5px; }
#hud.hx .hk { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .12s, background .12s; }
#hud.hx .hk:hover { border-color: #ff4fa3; background: rgba(255, 79, 163, .12); }
#hud.hx .hk img { width: 78%; height: 78%; margin: 11%; }
#hud.hx .hk b { color: #fff; opacity: .6; font-size: 9px; }
#hud.hx .hk .cd { line-height: normal; inset: 0; padding-top: 30%; border-radius: inherit; }

/* ---------- คอนเทนต์ (เมนูไอคอนใหญ่) ---------- */
.hx-feat { flex: none; width: 118px; display: grid; grid-template-rows: 1fr 1fr; gap: 6px; }
#hud.hx .menu-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, 1fr); grid-auto-columns: minmax(40px, 1fr); gap: 5px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
#hud.hx .menu-grid::-webkit-scrollbar { display: none; }
#hud.hx .hx-tile { position: relative; width: auto; height: auto; min-width: 0; padding: 0 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); color: #fff; font-size: 12px; line-height: 1; filter: none; animation: none; text-shadow: none; box-shadow: none; cursor: pointer; transition: transform .1s, background .12s, border-color .12s; }
#hud.hx .hx-tile:hover { background: rgba(255, 79, 163, .14); border-color: rgba(255, 79, 163, .55); transform: translateY(-1px); }
#hud.hx .hx-tile i { font-style: normal; font-size: 20px; line-height: 1; }
#hud.hx .hx-tile span { font-size: 10px; color: #cfc8ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#hud.hx .hx-tile kbd { position: absolute; top: 3px; right: 4px; font: 700 8px/1 system-ui, sans-serif; color: #fff; opacity: .38; background: none; border: 0; padding: 0; }
#hud.hx .hx-cash, #hud.hx .hx-auto { flex-direction: row; gap: 7px; justify-content: flex-start; padding: 0 10px; }
#hud.hx .hx-cash span, #hud.hx .hx-auto span { font-size: 10.5px; overflow: visible; font-weight: 800; color: #fff; letter-spacing: .3px; }
#hud.hx .hx-cash { background: linear-gradient(135deg, #ff4fa3, #7b2cff); border-color: rgba(255, 255, 255, .25); box-shadow: 0 0 14px rgba(255, 79, 163, .3); }
#hud.hx .hx-cash:hover { filter: brightness(1.12); }
#hud.hx .hx-auto.on { background: linear-gradient(135deg, #00d68f, #00a3ff); border-color: #fff; box-shadow: 0 0 14px rgba(0, 214, 143, .45); }
/* v18: ใช้ความกว้าง "ตรรกะ" ของ HUD (จอ ÷ สเกล UI) แทน media query */
body.hud-narrow #hud.hx .menu-grid .hx-tile span, body.hud-narrow #hud.hx .menu-grid .hx-tile kbd { display: none; } body.hud-narrow #hud.hx .menu-grid { grid-auto-columns: minmax(28px, 1fr); gap: 4px; } body.hud-narrow #hud.hx .hx-tile i { font-size: 18px; }

/* ---------- ขยับของที่ลอยเหนือ HUD ---------- */
body:not(.m-mobile) #chat:not(.cx-moved) { bottom: calc(110px * var(--ui, 1)) !important; }
body:not(.m-mobile) #chat-fab { bottom: calc(114px * var(--ui, 1)); }
body:not(.m-mobile) #chat-peek { bottom: calc(118px * var(--ui, 1)); }

/* =====================================================================
 * มือถือ — ทุกอย่างอยู่ในแถบดำแถวเดียว
 * ===================================================================== */
body.m-mobile #hud.hx { height: 64px; padding: 6px 8px 14px; }
body.m-mobile .hx-sec { padding: 0 8px; }
body.m-mobile #hud.hx .hud-lv { width: 40px; height: 40px; border-radius: 11px; }
body.m-mobile #hud.hx .hud-lv b { font-size: 14px; margin-top: 2px; } body.m-mobile #hud.hx .hud-lv span { font-size: 8px; }
body.m-mobile #hud.hx .hud-id { display: none; }
body.m-mobile #hud.hx .track { height: 15px; } body.m-mobile #hud.hx .track span { line-height: 15px; }
body.m-mobile #hud.hx #hotbar { display: grid !important; grid-template-columns: repeat(8, minmax(0, 40px)); }
body.m-mobile #hud.hx #hotbar .hk:nth-child(-n+8) { display: none; }
body.m-mobile #hud.hx .hx-feat { display: none; }
body.m-mobile #hud.hx .menu-grid { display: grid !important; grid-template-rows: 1fr; grid-auto-columns: 42px; align-self: center; height: 42px; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
body.m-mobile #hud.hx .menu-grid .hx-tile span, body.m-mobile #hud.hx .menu-grid .hx-tile kbd { display: none; }
body.m-mobile #hud.hx .hx-content::after { content: "›"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .35); font-size: 18px; pointer-events: none; }

/* ---------- v16: แถบปาร์ตี้ซ้ายจอ ---------- */
#pt-hud { position: absolute; left: 8px; top: calc(122px * var(--ui, 1)); z-index: 6; width: 176px; padding: 6px; border-radius: 12px; background: rgba(8, 6, 18, .55); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(4px); color: #fff; pointer-events: auto; cursor: pointer; transform: scale(var(--ui, 1)); transform-origin: 0 0; }
#pt-hud.hidden { display: none; }
.pt-h { font-size: 11px; font-weight: 800; padding: 0 2px 4px; letter-spacing: .3px; } .pt-h small { color: rgba(255, 255, 255, .5); font-weight: 600; }
.pt-row { display: flex; gap: 6px; align-items: center; padding: 3px 2px; }
.pt-row > i { width: 6px; align-self: stretch; border-radius: 3px; flex: none; }
.pt-t { flex: 1; min-width: 0; } .pt-t b { font-size: 11.5px; display: inline-block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; } .pt-t small { font-size: 9.5px; color: rgba(255, 255, 255, .55); margin-left: 4px; }
.pt-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 2px; } .pt-bar span { display: block; height: 100%; border-radius: 3px; transition: width .3s; }
.pt-row.far { opacity: .5; } .pt-row.me b { color: #ffd166; }
body.m-mobile #pt-hud { top: calc(172px * var(--ui, 1)); width: 150px; }
/* ร้านค้า: แถวไม่ยืด (คำอธิบายดูจากทูลทิปแทน) */
.shop-row .grow b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
/* v16: เรียงไอคอนเมนูเป็นแถว (ซ้าย→ขวา) 8 คอลัมน์ บน PC */
body:not(.m-mobile) #hud.hx .menu-grid { grid-auto-flow: row; grid-template-rows: repeat(2, 1fr); grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-columns: unset; overflow: hidden; }

/* ---------- v17: ปุ่ม EVENT ใหญ่ (= CASH SHOP + AUTO) + หน้าต่าง EVENT ---------- */
#hud.hx .hx-event { flex: none; width: 118px; align-self: stretch; gap: 3px; background: linear-gradient(160deg, #ffb300, #ff4f6d 55%, #7b2cff); border-color: rgba(255, 255, 255, .3); box-shadow: 0 0 14px rgba(255, 179, 0, .3); overflow: visible; }
#hud.hx .hx-event:hover { filter: brightness(1.12); }
#hud.hx .hx-event i { font-size: 30px; }
#hud.hx .hx-event span { font-size: 13px; font-weight: 900; color: #fff; letter-spacing: 1.5px; overflow: visible; }
#hud.hx .hx-event small { font-size: 8.5px; font-weight: 700; color: rgba(255, 255, 255, .8); letter-spacing: .5px; }
#hud.hx .hx-event.glow { animation: evGlow 1.6s ease-in-out infinite; }
@keyframes evGlow { 50% { box-shadow: 0 0 22px rgba(255, 209, 102, .85); } }
#hud .ev-dot { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ff3355; color: #fff; font: 800 10px/17px system-ui, sans-serif; text-align: center; border: 2px solid #120c24; }
#hud .ev-dot.hidden { display: none; }
body:not(.m-mobile) #hud.hx .hx-evmini { display: none; }
body.m-mobile #hud.hx .hx-evmini { background: linear-gradient(160deg, #ffb300, #ff4f6d 55%, #7b2cff); }
body.m-mobile #hud.hx .hx-evmini .ev-dot { top: -3px; right: -3px; min-width: 12px; height: 12px; font-size: 0; padding: 0; }
body.m-mobile #hud.hx .hx-event { display: none; }
.ev-hero { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(120deg, rgba(255, 179, 0, .25), rgba(255, 79, 109, .22), rgba(123, 44, 255, .25)); border: 1px solid rgba(255, 255, 255, .12); }
.ev-hero b { display: block; font-size: 15px; } .ev-hero small { color: rgba(255, 255, 255, .7); font-size: 11.5px; }
.ev-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ev-list { display: grid; gap: 6px; margin-bottom: 8px; }
.ev-card { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.ev-card[data-a] { cursor: pointer; } .ev-card[data-a]:hover { border-color: #ff4fa3; background: rgba(255, 79, 163, .1); }
.ev-card.big { padding: 14px; min-height: 86px; } .ev-card.big .ev-ic { font-size: 34px; }
.ev-card.pass { background: linear-gradient(135deg, rgba(123, 44, 255, .3), rgba(255, 79, 163, .15)); }
.ev-card.daily { background: linear-gradient(135deg, rgba(0, 214, 143, .25), rgba(0, 163, 255, .15)); }
.ev-card.soon { opacity: .55; border-style: dashed; }
.ev-ic { font-size: 26px; flex: none; } .ev-t { flex: 1; min-width: 0; } .ev-t b { display: block; font-size: 13px; } .ev-t small { display: block; color: rgba(255, 255, 255, .65); font-size: 11px; margin-top: 2px; }
.ev-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); margin-top: 6px; overflow: hidden; } .ev-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffd166, #ff4fa3); }
.ev-tag { position: absolute; top: 6px; right: 8px; font: 800 9.5px/1 system-ui, sans-serif; font-style: normal; padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.ev-tag.hot { background: #ff3355; animation: evGlow 1.6s infinite; } .ev-tag.done { background: rgba(62, 224, 143, .25); color: #3ee08f; }
.ev-tag.live { background: #ff3355; } .ev-tag.soon { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
@media (max-width: 600px) { .ev-grid2 { grid-template-columns: 1fr; } }
#hud.hx .menu-grid [data-w="tree"] span { font-size: 9px; letter-spacing: -.3px; text-overflow: clip; }

/* ---------- v21: 📰 UPDATE (การ์ดขาว) + Patch Notes ---------- */
.up-card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 12px 40px 12px 14px; margin-bottom: 10px; border-radius: 14px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f4f1ff 60%, #ffe9f4); border: 1px solid #fff; box-shadow: 0 6px 20px rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(123, 44, 255, .12); color: #2a1f44; transition: transform .12s, box-shadow .12s; }
.up-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 79, 163, .3), inset 0 0 0 1px rgba(123, 44, 255, .25); }
.up-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, #ff4fa3, #7b2cff); box-shadow: 0 4px 12px rgba(123, 44, 255, .35); }
.up-t { flex: 1; min-width: 0; } .up-t small { display: block; font: 800 9.5px/1 system-ui, sans-serif; letter-spacing: 1.6px; color: #ff4fa3; }
.up-t b { display: block; font-size: 16px; margin: 4px 0 2px; color: #1d1433; letter-spacing: .3px; } .up-t span { display: block; font-size: 11.5px; color: #6b5f86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-thumb { flex: none; width: 112px; height: 63px; border-radius: 10px; background: center / cover no-repeat; image-rendering: pixelated; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
.up-new { position: absolute; top: 8px; right: 10px; padding: 3px 7px; border-radius: 7px; background: #ff3355; color: #fff; font: 800 9.5px/1 system-ui, sans-serif; font-style: normal; animation: evGlow 1.6s infinite; }
.up-go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 24px; color: #b9aee0; }
@media (max-width: 560px) { .up-thumb { display: none; } }

.win[data-win="patch"] .win-body { background: #f6f4fb; color: #2a1f44; }
.pt-top { padding: 14px 16px; margin: -2px 0 12px; border-radius: 14px; background: linear-gradient(135deg, #ff4fa3, #7b2cff); color: #fff; } .pt-top b { display: block; font-size: 17px; letter-spacing: .5px; } .pt-top small { opacity: .85; font-size: 11.5px; }
.pt-card { border-radius: 14px; background: #fff; border: 1px solid #e7e2f3; box-shadow: 0 3px 12px rgba(40, 20, 80, .08); margin-bottom: 12px; overflow: hidden; }
.pt-card header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; border-left: 5px solid var(--pc); }
.pt-card header:hover { background: #faf8ff; }
.pt-ver { flex: none; padding: 5px 9px; border-radius: 8px; background: var(--pc); color: #fff; font: 800 10.5px/1 system-ui, sans-serif; letter-spacing: .8px; }
.pt-h { flex: 1; min-width: 0; } .pt-h b { display: block; font-size: 14px; color: #1d1433; } .pt-h small { font-size: 10.5px; color: #9a90b5; }
.pt-ar { font-style: normal; color: #9a90b5; font-size: 14px; }
.pt-body { padding: 0 14px 14px; }
.pt-body figure { margin: 0 0 10px; border-radius: 12px; overflow: hidden; border: 1px solid #e7e2f3; background: #cfe9ff; }
.pt-body figure img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.pt-body figcaption { padding: 6px 10px; font-size: 11px; color: #6b5f86; background: #fff; }
.pt-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #3a2f55; }
.pt-outro { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4fa; border: 1px dashed #ffb3d4; font-size: 12.5px; color: #5a2744; }
.pt-cls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pt-c { text-align: center; padding: 10px 8px 12px; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.pt-cimg { height: 86px; display: flex; align-items: flex-end; justify-content: center; } .pt-cimg img { max-height: 86px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); }
.pt-c b { display: block; margin-top: 6px; font-size: 13px; color: var(--c); } .pt-c small { display: block; font-size: 11px; color: #6b5f86; font-weight: 700; }
.pt-c p { margin: 6px 0 0; font-size: 11px; line-height: 1.45; color: #4a4063; }
.pt-list { display: grid; gap: 6px; } .pt-li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f8f6fd; border: 1px solid #ece8f6; }
.pt-li i { font-style: normal; font-size: 20px; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(40, 20, 80, .1); }
.pt-li b { display: block; font-size: 12.5px; color: #1d1433; } .pt-li small { display: block; font-size: 11px; color: #6b5f86; }
@media (max-width: 620px) { .pt-cls { grid-template-columns: repeat(2, 1fr); } }
.pt-li small b, .pt-outro b { display: inline; font-size: inherit; color: inherit; font-weight: 800; }

/* ---------- v23: ⚔ CP ใต้มินิแมพ + เบ็ดออโต้ ---------- */
#cp-box { position: absolute; z-index: 6; display: flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 4px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font: 800 15px/1.1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .6px; pointer-events: auto; transform: scale(var(--ui, 1)); transform-origin: 0 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); box-sizing: border-box; font-variant-numeric: tabular-nums; }
#cp-box.hidden { display: none; }
#cp-box .cp-l { font-size: 12px; letter-spacing: 1.5px; } #cp-box .cp-c { opacity: .7; } #cp-box b { font-weight: 900; }
#cp-box i { position: absolute; left: 100%; top: 50%; margin-left: 6px; transform: translateY(-50%); font: 800 11px/1 system-ui, sans-serif; font-style: normal; color: #69f0ae; white-space: nowrap; text-shadow: 0 1px 3px #000; opacity: 0; transition: opacity .25s; }
#cp-box i.on { opacity: 1; animation: cpUp 1.8s ease-out; }
#cp-box.cp-pulse { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 16px rgba(255, 255, 255, .35); }
@keyframes cpUp { from { transform: translate(0, -20%); } to { transform: translate(0, -110%); } }
#rod-hud { position: absolute; left: 50%; bottom: calc(150px * var(--ui, 1)); transform: translateX(-50%); z-index: 7; padding: 6px 14px; border-radius: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; }
#rod-hud.hidden { display: none; } #rod-hud small { opacity: .7; margin-left: 6px; }
body.m-mobile #rod-hud { bottom: auto; top: calc(var(--sat, 0px) + 150px * var(--ui, 1)); }

/* ---------- v24: 🎁 GACHAPON ---------- */
.ga-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 10px 16px; margin: 0 0 10px; border-radius: 14px; cursor: pointer; color: #2a1f44;
  border: 3px solid transparent; background: linear-gradient(135deg, #ffffff, #fbf8ff) padding-box, linear-gradient(90deg, #ff1744, #ff9100, #ffea00, #00e676, #00b0ff, #3d5afe, #d500f9, #ff1744) border-box;
  background-size: 100% 100%, 300% 100%; animation: gaRain 4s linear infinite; box-shadow: 0 0 18px rgba(255, 255, 255, .15), 0 0 22px rgba(213, 0, 249, .25); transition: transform .12s; }
.ga-card:hover { transform: translateY(-2px) scale(1.005); }
@keyframes gaRain { to { background-position: 0 0, 300% 0; } }
.ga-t { flex: 1; min-width: 0; } .ga-t small { display: block; font: 800 9.5px/1 system-ui, sans-serif; letter-spacing: 1.4px; color: #d500f9; }
.ga-t b { display: block; font-size: 16px; margin: 4px 0 3px; color: #1d1433; } .ga-t span { font-size: 11.5px; color: #6b5f86; }
.ga-mid { flex: none; width: 120px; display: flex; justify-content: center; align-items: center; }
.ga-chest { width: 76px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(255, 213, 79, .9)); animation: gaBob 1.6s ease-in-out infinite; }
@keyframes gaBob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.ga-pets { display: flex; gap: 2px; } .ga-pets img { width: 38px; image-rendering: pixelated; animation: gaBob 1.4s ease-in-out infinite; } .ga-pets img:nth-child(2) { animation-delay: .2s; } .ga-pets img:nth-child(3) { animation-delay: .4s; }
.ga-r { flex: 1; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } .ga-r em { font-style: normal; font-size: 10.5px; color: #8a7fa6; }
.ga-r b { font-size: 17px; color: #d81b60; } .ga-r i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; color: #fff; background: linear-gradient(90deg, #ff9100, #d500f9); }
.win[data-win="gacha"] .win-body { background: #f6f4fb; color: #2a1f44; }
.ga-head { padding: 12px 14px; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #ff4fa3, #7b2cff); margin-bottom: 8px; } .ga-head.pet { background: linear-gradient(120deg, #00c853, #00b0ff); }
.ga-head b { display: block; font-size: 16px; } .ga-head small { opacity: .9; font-size: 11px; }
.ga-tabs { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; } .ga-tabs button { padding: 7px 14px; border-radius: 10px; border: 1px solid #d9d2ec; background: #fff; color: #4a3f66; font: 700 12.5px/1 inherit; cursor: pointer; }
.ga-tabs button.on { background: #2a1f44; color: #fff; border-color: #2a1f44; } .ga-nx { margin-left: auto; font-weight: 800; color: #d81b60; }
.ga-machine { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e7e2f3; margin-bottom: 10px; }
.ga-chest.big { width: 110px; } .ga-chest.open { animation: gaOpen .6s ease-out; } @keyframes gaOpen { 30% { transform: scale(1.25) rotate(6deg); filter: drop-shadow(0 0 22px #fff176); } }
.ga-pets.big img { width: 52px; }
.ga-btns { flex: 1; display: flex; gap: 8px; } .ga-btns .btn { flex: 1; padding: 10px; font-size: 14px; line-height: 1.25; } .ga-btns small { font-size: 11px; opacity: .9; }
.ga-res { padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #e7e2f3; margin-bottom: 10px; }
.ga-resg { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.ga-rc { position: relative; animation: gaPop .45s both; } @keyframes gaPop { from { opacity: 0; transform: scale(.4) rotateY(90deg); } }
.ga-rc > i { position: absolute; top: -4px; right: -2px; font: 800 9px/1 system-ui, sans-serif; font-style: normal; padding: 2px 5px; border-radius: 6px; color: #fff; } .ga-rc > i.new { background: #ff3355; } .ga-rc > i.dup { background: #8a7fa6; }
.gc-it { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 10px; background: #fff; border: 2px solid #e0dbee; text-align: center; min-width: 0; }
.gc-it img { width: 36px; height: 36px; image-rendering: pixelated; } .gc-it b { font-size: 10px; line-height: 1.2; color: #3a2f55; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-it.t-rare { border-color: #40c4ff; background: #f0faff; } .gc-it.t-epic { border-color: #d500f9; background: linear-gradient(#fff, #fbefff); box-shadow: 0 0 10px rgba(213, 0, 249, .25); }
.ga-rates { display: grid; gap: 8px; } .ga-rate { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #e7e2f3; }
.ga-rate > b { font-size: 16px; margin-right: 6px; } .ga-rate > span { font-size: 11.5px; color: #6b5f86; } .ga-rate.t-rare > b { color: #0091ea; } .ga-rate.t-epic > b { color: #aa00ff; }
.ga-rate > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 5px; margin-top: 6px; }
.ga-mixtop { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #fffde7, #fff3e0); border: 2px solid #ffd54f; flex-wrap: wrap; }
.ga-prize { display: flex; gap: 8px; align-items: center; } .ga-prize img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 0 8px #ffd600); }
.ga-prize small { font-size: 10px; color: #8d6e63; } .ga-prize b { display: block; font-size: 14px; color: #e65100; } .ga-prize span { font-size: 10.5px; color: #6d4c41; }
.ga-slots { display: flex; gap: 5px; flex: 1; } .ga-slot { width: 62px; min-height: 66px; border-radius: 10px; border: 2px dashed #d7ccc8; display: grid; place-items: center; color: #bcaaa4; font-size: 22px; background: #fff; }
.ga-slot.full { border-style: solid; cursor: pointer; } .ga-slot .gc-it { border: 0; padding: 2px; }
.ga-mixbtn { padding: 12px 16px; font-size: 14px; } .ga-mixbtn[disabled] { opacity: .45; }
.ga-mix .hint { color: #6b5f86; margin: 8px 2px; }
.ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.ga-pickw { position: relative; cursor: pointer; } .ga-pickw > i { position: absolute; top: 2px; right: 4px; font: 800 10px/1 system-ui, sans-serif; font-style: normal; color: #d81b60; } .ga-pickw.used { opacity: .35; pointer-events: none; }
.win[data-win="gacha"] .sub-title { color: #4a3f66; border-color: #e0dbee; }
.ga-btns .btn, .ga-mixbtn { border: 0; border-radius: 12px; color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); text-shadow: none; }
.ga-btns .btn.pink { background: linear-gradient(135deg, #ff4fa3, #d500f9); } .ga-btns .btn.gold { background: linear-gradient(135deg, #ff9100, #ff1744); }
.ga-btns .btn:hover, .ga-mixbtn:not([disabled]):hover { filter: brightness(1.1); transform: translateY(-1px); }
.ga-mixbtn { background: linear-gradient(135deg, #ffb300, #ff6d00); } .ga-mixbtn[disabled] { background: #cfc8e0; box-shadow: none; }
/* v25: การ์ดกาชาสีทอง / เงิน + นับถอยหลัง */
.ga-card.gold { color: #3e2a00; background: linear-gradient(135deg, #fff3c4, #ffd54f 45%, #ffb300 75%, #ffe082) padding-box, linear-gradient(90deg, #ff1744, #ff9100, #ffea00, #00e676, #00b0ff, #3d5afe, #d500f9, #ff1744) border-box; background-size: 100% 100%, 300% 100%; }
.ga-card.silver { color: #1f2a36; background: linear-gradient(135deg, #f5f7fa, #cfd8dc 45%, #90a4ae 75%, #eceff1) padding-box, linear-gradient(90deg, #ff1744, #ff9100, #ffea00, #00e676, #00b0ff, #3d5afe, #d500f9, #ff1744) border-box; background-size: 100% 100%, 300% 100%; }
.ga-card.gold .ga-t b, .ga-card.silver .ga-t b { color: #1a1200; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); } .ga-card.silver .ga-t b { color: #102030; }
.ga-card.gold .ga-t small { color: #8d2d00; } .ga-card.silver .ga-t small { color: #37474f; }
.ga-card.gold .ga-t span, .ga-card.silver .ga-t span { color: rgba(0, 0, 0, .62); } .ga-card.gold .ga-r em, .ga-card.silver .ga-r em { color: rgba(0, 0, 0, .55); }
.ga-card.gold .ga-r b { color: #b71c1c; } .ga-card.silver .ga-r b { color: #0d47a1; }
.ga-card.gold::after, .ga-card.silver::after { content: ""; position: absolute; inset: 0; border-radius: 11px; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%) 0 0 / 250% 100%; animation: gaShine 3.2s ease-in-out infinite; }
@keyframes gaShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ga-cd { display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 7px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 10.5px/1.2 system-ui, sans-serif; text-decoration: none; font-variant-numeric: tabular-nums; }
.ga-t .ga-cd span { display: inline; color: #ffe57f; font-size: inherit; }
.ga-cd.big { display: block; width: max-content; margin-top: 6px; background: rgba(0, 0, 0, .35); font-size: 11.5px; }
.ga-head .ga-cd span { color: #fff59d; }
.ga-card > * { position: relative; z-index: 1; } .ga-card.gold::after, .ga-card.silver::after { z-index: 0; opacity: .7; }

/* ---------- v26: ป๊อปอัป EXP/ไอเทม ลอยเหนือ HUD ทุกสเกล + หน้าต่างเปลี่ยนชื่อ ---------- */
body:not(.m-mobile) #log { right: 10px; bottom: calc(122px * var(--ui, 1)) !important; transform: scale(var(--ui, 1)); transform-origin: 100% 100%; z-index: 7; }
body:not(.m-mobile) #fish-btn { bottom: calc(124px * var(--ui, 1)); }
body:not(.m-mobile) #rod-hud { bottom: calc(176px * var(--ui, 1)); }
.rn-box { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 4px; }
.rn-ic { font-size: 40px; } .rn-cur small { display: block; font-size: 11px; opacity: .6; } .rn-cur b { font-size: 18px; }
.rn-box input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); color: #fff; font-size: 15px; text-align: center; }
.rn-box input:focus { outline: none; border-color: #ffd54f; } .rn-err { min-height: 16px; font-size: 12px; color: #ff8a80; }
.rn-box .btn { width: 100%; padding: 10px; } .rn-hist { font-size: 11px; opacity: .75; } .rn-hist i { font-style: normal; margin: 0 3px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }

/* ---------- v28: 🏆 RANKING + 🌱 Farm HUD ---------- */
.rk-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.rk-tabs button { padding: 9px 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); color: #fff; font: 700 12.5px/1 inherit; cursor: pointer; }
.rk-tabs button.on { background: linear-gradient(135deg, #ffb300, #ff6d00); border-color: #ffd54f; color: #1a1000; }
.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin-bottom: 10px; }
.rk-pod { text-align: center; padding: 10px 6px 0; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); overflow: hidden; }
.rk-pod i { font-style: normal; font-size: 26px; display: block; } .rk-pod b { display: block; font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-pod small { display: block; font-size: 10px; opacity: .6; } .rk-pod em { display: block; font-style: normal; font-size: 11.5px; color: #ffd54f; margin: 3px 0 6px; font-weight: 800; }
.rk-step { font: 900 22px/1 system-ui, sans-serif; padding: 10px 0; color: #1a1000; }
.rk-pod.p1 .rk-step { background: linear-gradient(#ffe082, #ffb300); padding: 22px 0; } .rk-pod.p2 .rk-step { background: linear-gradient(#eceff1, #b0bec5); } .rk-pod.p3 .rk-step { background: linear-gradient(#ffcc80, #d17a3a); padding: 6px 0; }
.rk-pod.me { box-shadow: inset 0 0 0 2px #ff4fa3; }
.rk-me { padding: 8px 12px; border-radius: 10px; background: rgba(255, 79, 163, .15); border: 1px solid rgba(255, 79, 163, .4); font-size: 12.5px; margin-bottom: 8px; } .rk-me b { color: #ff9ecb; font-size: 15px; }
.rk-list { max-height: 300px; overflow-y: auto; display: grid; gap: 4px; }
.rk-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.rk-row.me { background: rgba(255, 79, 163, .18); box-shadow: inset 0 0 0 1px #ff4fa3; }
.rk-n { width: 28px; text-align: center; font: 800 13px/1 system-ui, sans-serif; opacity: .8; } .rk-row > i { width: 6px; height: 28px; border-radius: 3px; flex: none; }
.rk-who { flex: 1; min-width: 0; } .rk-who b { font-size: 12.5px; } .rk-who u { text-decoration: none; font-size: 9.5px; color: #69f0ae; margin-left: 6px; } .rk-who small { display: block; font-size: 10px; opacity: .55; }
.rk-row em { font-style: normal; font-weight: 800; font-size: 12px; color: #ffd54f; white-space: nowrap; } .rk-gap { text-align: center; opacity: .5; }
#farm-hud { position: absolute; left: 50%; top: calc(64px * var(--ui, 1)); transform: translateX(-50%) scale(var(--ui, 1)); transform-origin: 50% 0; z-index: 6; min-width: 180px; padding: 7px 14px 6px; border-radius: 12px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(105, 240, 174, .45); color: #fff; text-align: center; pointer-events: none; }
#farm-hud.hidden { display: none; } #farm-hud b { font-size: 14px; color: #b9f6ca; } #farm-hud small { font-size: 10px; opacity: .75; }
.fh-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); margin: 4px 0 2px; overflow: hidden; } .fh-bar span { display: block; height: 100%; background: linear-gradient(90deg, #69f0ae, #c6ff00); }
body.m-mobile #farm-hud { top: calc(var(--sat, 0px) + 62px * var(--ui, 1)); }
#farm-hud { left: auto; right: 12px; top: calc(168px * var(--ui, 1)); transform: scale(var(--ui, 1)); transform-origin: 100% 0; }
body.m-mobile #farm-hud { top: calc(var(--sat, 0px) + 150px * var(--ui, 1)); right: calc(var(--sar, 0px) + 8px); }

/* ---------- v29: คลัง • ล็อก • ขยายกระเป๋า • Auto UI ใหม่ • Ranking sprite ---------- */
.slot.locked { box-shadow: inset 0 0 0 2px #ffca28; } .slot .lk { position: absolute; left: 1px; top: 0; font-size: 10px; line-height: 1; filter: drop-shadow(0 1px 1px #000); }
.inv-grid.lockmode .slot:not(.empty) { cursor: pointer; outline: 1px dashed rgba(255, 202, 40, .6); }
.inv-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; font-size: 11.5px; } .inv-bar span { flex: 1; min-width: 120px; } .inv-bar b { color: #ffd54f; }
.bx { display: grid; gap: 8px; } .bx-t { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; cursor: pointer; }
.bx-t:hover:not([disabled]) { border-color: #ffd54f; background: rgba(255, 213, 79, .12); } .bx-t[disabled] { opacity: .45; cursor: default; } .bx-t span { color: #69f0ae; font-weight: 800; }
.st-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .st-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.st-h { font-weight: 800; font-size: 13px; } .st-h small { font-weight: 400; opacity: .6; font-size: 10.5px; margin-left: 4px; }
.st-grid { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 4px; max-height: 330px; overflow-y: auto; align-content: start; padding: 6px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.st-grid .slot { width: auto; aspect-ratio: 1; position: relative; }
.st-meso { display: flex; align-items: center; gap: 6px; font-size: 12px; } .st-meso b { color: #ffd54f; margin-right: auto; }
@media (max-width: 700px) { .st-wrap { grid-template-columns: 1fr; } }
.rk-spr { height: 64px; display: flex; align-items: flex-end; justify-content: center; } .rk-spr img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.rk-pod.p1 .rk-spr { height: 80px; } .rk-pod.p1 .rk-spr img { width: 80px; height: 80px; filter: drop-shadow(0 0 10px rgba(255, 213, 79, .8)); }
/* Smart Auto Battle */
.au-big { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 0; cursor: pointer; color: #fff; text-align: left; background: linear-gradient(135deg, #00c853, #00b0ff); box-shadow: 0 6px 18px rgba(0, 200, 83, .3); font: inherit; }
.au-big.on { background: linear-gradient(135deg, #ff5252, #ff9100); box-shadow: 0 6px 18px rgba(255, 82, 82, .35); }
.au-big i { font-style: normal; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 18px; flex: none; }
.au-big div { flex: 1; min-width: 0; } .au-big b { display: block; font-size: 17px; letter-spacing: .5px; } .au-big small { display: block; font-size: 11.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-big kbd { background: rgba(0, 0, 0, .25); border-radius: 6px; padding: 3px 7px; font: 700 11px/1 system-ui, sans-serif; }
.au-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; } .au-stats div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.au-stats small { display: block; font-size: 10px; opacity: .6; } .au-stats b { font-size: 15px; color: #ffd54f; }
.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.au-card { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 8px; }
.au-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .au-h b { font-size: 12.5px; } .au-h em { font-style: normal; font-size: 10.5px; opacity: .7; }
.au-seg { display: flex; flex-wrap: wrap; gap: 4px; } .au-seg button { flex: 1 0 auto; padding: 7px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #ddd; font: 600 11px/1 inherit; cursor: pointer; }
.au-seg button.on { background: #ffd54f; color: #1a1000; border-color: #ffd54f; }
.au-rng { display: grid; grid-template-columns: 82px 1fr 38px; align-items: center; gap: 8px; margin: 6px 0; font-size: 11.5px; } .au-rng b { color: #ffd54f; text-align: right; }
.au-sws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.au-sw { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); cursor: pointer; }
.au-sw > div { flex: 1; min-width: 0; } .au-sw b { display: block; font-size: 11.5px; } .au-sw small { display: block; font-size: 9.5px; opacity: .6; }
.au-card.sell.on { border-color: rgba(105, 240, 174, .45); background: linear-gradient(135deg, rgba(0, 200, 83, .12), rgba(255, 255, 255, .03)); }
.au-card.sell.off { border-style: dashed; text-align: center; } .au-card.sell.off p { font-size: 11.5px; opacity: .75; margin: 0 0 8px; }
.au-live { color: #69f0ae !important; opacity: 1 !important; font-weight: 800; }
.au-lbl { font-size: 10.5px; opacity: .65; margin: 8px 0 4px; } .au-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.au-chips .chip.g1.on { background: #40c4ff; } .au-chips .chip.g2.on { background: #d500f9; color: #fff; } .au-chips .chip.g3.on { background: #ffab00; } .au-chips .chip.g4.on { background: #69f0ae; }
.au-chips .btn { margin-left: auto; }
.au-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; max-height: 170px; overflow-y: auto; }
.au-sk { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 9px; background: rgba(0, 0, 0, .2); border: 1px solid transparent; cursor: pointer; font-size: 11.5px; opacity: .55; }
.au-sk.on { opacity: 1; border-color: rgba(255, 213, 79, .45); } .au-sk input { display: none; } .au-sk img { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 5px; }
@media (max-width: 560px) { .au-grid, .au-sws { grid-template-columns: 1fr; } }

/* ---------- v30: Salon ไม่ยืด • Ranking ตัวใหญ่ + ตัวหนังสือขอบดำ • ร้านแลก Beta ---------- */
.salon { align-items: flex-start; }
.salon > canvas.preview { flex: none; align-self: flex-start; width: 200px !important; height: 220px !important; border-radius: 14px; background: radial-gradient(circle at 50% 70%, rgba(255, 255, 255, .12), rgba(0, 0, 0, .25)); border: 1px solid rgba(255, 255, 255, .12); }
.rk-pod { position: relative; }
.rk-spr { height: 118px !important; margin-bottom: -46px; position: relative; z-index: 0; }
.rk-spr img { width: 140px !important; height: 140px !important; margin-bottom: -18px; }
.rk-pod.p1 .rk-spr { height: 150px !important; } .rk-pod.p1 .rk-spr img { width: 180px !important; height: 180px !important; }
.rk-pod > i, .rk-pod > b, .rk-pod > small, .rk-pod > em { position: relative; z-index: 1; }
.rk-pod > b, .rk-pod > small, .rk-pod > em { text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 3px 6px rgba(0, 0, 0, .8); }
.rk-pod > b { font-size: 16px !important; color: #fff; } .rk-pod > small { opacity: 1 !important; color: #e0e0e0; font-size: 11px !important; } .rk-pod > em { font-size: 14px !important; }
.ex-hero { padding: 12px 14px; border-radius: 12px; margin-bottom: 8px; color: #fff; background: linear-gradient(120deg, #ff4fa3, #7b2cff 60%, #00b0ff); }
.ex-hero b { display: block; font-size: 15px; } .ex-hero small { display: block; font-size: 11px; opacity: .9; } .ex-hero em { display: inline-block; margin-top: 6px; font-style: normal; font-weight: 800; background: rgba(0, 0, 0, .3); padding: 3px 10px; border-radius: 8px; }
.ex-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 6px; }
.ex-row.ok { border-color: rgba(255, 213, 79, .6); background: rgba(255, 213, 79, .08); }
.ex-row > img { width: 40px; height: 40px; image-rendering: pixelated; background: rgba(0, 0, 0, .3); border-radius: 10px; padding: 4px; }
.ex-t { flex: 1; min-width: 0; } .ex-t b { font-size: 12.5px; } .ex-need { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ex-need span { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .3); }
.ex-need span.y { color: #69f0ae; } .ex-need span.n { color: #ff8a80; } .ex-need img { width: 14px; height: 14px; image-rendering: pixelated; }

/* ---------- v33: 🪑 AFK ---------- */
.afk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.afk-card { position: relative; text-align: center; padding: 6px 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; }
.afk-card:hover { border-color: #ffd54f; } .afk-card.on { border-color: #69f0ae; background: rgba(105, 240, 174, .1); box-shadow: 0 0 10px rgba(105, 240, 174, .25); }
.afk-card img { width: 64px; height: 64px; image-rendering: pixelated; } .afk-card b { display: block; font-size: 11px; line-height: 1.25; min-height: 28px; }
.afk-card small { display: block; font-size: 9.5px; opacity: .6; } .afk-card em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, .1); }
.afk-card.lock em { background: linear-gradient(135deg, #ff4fa3, #7b2cff); color: #fff; } .afk-card.on em { background: #69f0ae; color: #0b2a17; }
.afk-edit { margin-top: 10px; } .afk-edit input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .3); color: #fff; font-size: 14px; }
.afk-edit input:focus { outline: none; border-color: #ffd54f; }
.afk-q { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; } .afk-q button { padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); color: #fff; font-size: 11px; cursor: pointer; }
.afk-q button:hover { border-color: #ffd54f; } .afk-go { flex: 1; padding: 10px; font-size: 14px; }
@media (max-width: 560px) { .afk-grid { grid-template-columns: repeat(2, 1fr); } }

/* v36: ป้าย AI */
.ai-tag{font-style:normal;font-weight:800;font-size:.82em;color:#80d8ff;letter-spacing:.02em}

/* v101: คลังสมบัติ — 2 ฝั่งตรงกัน ไม่ยืด */
.st-wrap { align-items: start; }
.st-col { justify-content: flex-start; }
.st-hd { flex: none; font-weight: 800; font-size: 14px; height: 22px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-hd small { font-weight: 400; opacity: .6; font-size: 10.5px; margin-left: 4px; }
.st-bar { flex: none; height: 34px; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.st-bar.st-tabs .tabs { margin: 0; width: 100%; display: flex; gap: 2px; }
.st-bar.st-tabs .tab { flex: 1; padding: 6px 4px; }
.st-have { white-space: nowrap; } .st-have b { color: #ffd54f; }
.st-amt { flex: 1; min-width: 0; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid rgba(255,213,79,.4); background: rgba(0,0,0,.35); color: #fff; font-weight: 700; text-align: right; }
.st-grid { flex: none; height: 330px; max-height: none; }
.st-foot { flex: none; height: 40px; display: flex; align-items: center; gap: 5px; }
.st-foot .btn { flex: 1; padding: 6px 2px; font-size: 11px; white-space: nowrap; }
.st-foot .money { width: 100%; margin: 0; height: 36px; box-sizing: border-box; }
.st-grid .slot .cz { position: absolute; left: 1px; top: 1px; font-size: 6px; font-weight: 900; color: #fff; background: linear-gradient(90deg,#ff4fa3,#7c4dff); padding: 0 2px; border-radius: 3px; }
.st-grid .slot.r-cash { box-shadow: inset 0 0 0 1px rgba(255,79,163,.6); }
