/* CraftVal: tampilan Minecraft penuh. Tekstur blok asli (assets/tex), tekstur item asli (assets/icons), huruf Monocraft.
   Latar tanah, panel inventaris, tombol dan slot bergaya GUI game, bar XP hijau, tooltip ungu, dan chat bergaya chat dalam game.
   Dimuat paling akhir; hapus tautannya di layout bila ingin kembali ke tampilan lama. */

:root {
  --bg: #2b1d12; --bg2: #20150c; --panel: #c6c6c6; --panel2: #b3b3b3; --ink: #262626; --muted: #555; --edge: #000;
  --hi: #ffffff; --lo: #555555; --slot: #8b8b8b; --slot-edge: #373737;
  --grass: #4e9a1f; --grass2: #2f6a10; --gold: #e8a817; --gold2: #a87408; --red: #c0392b; --red2: #8f2a20; --blue: #3a78c8; --stone: #6d6d6d;
  --ok-bg: #cfe8b8; --err-bg: #f0c4bd; --warn-bg: #f4e2a0; --info-bg: #c6dcf0;
  --mcgreen: #55ff55; --mcgold: #ffaa00; --mcaqua: #55ffff; --mcyellow: #ffff55;
}
:root[data-theme="dark"] {
  --bg: #1a120b; --bg2: #120c07; --panel: #383838; --panel2: #2c2c2c; --ink: #ececec; --muted: #a8a8a8; --edge: #000;
  --hi: rgba(255,255,255,.26); --lo: rgba(0,0,0,.65); --slot: #1f1f1f; --slot-edge: #000;
  --ok-bg: #20361a; --err-bg: #3a1e1a; --warn-bg: #3a3014; --info-bg: #16293a;
}

/* ---- huruf: font Minecraft (Monocraft) di SEMUA teks, bukan font sistem ---- */
:root { --font: "Monocraft", ui-monospace, Menlo, Consolas, monospace; --font-pix: "Monocraft", ui-monospace, Menlo, Consolas, monospace; }
body { font-family: var(--font); font-size: 14px; line-height: 1.6; letter-spacing: 0; }
input, textarea, select, button { font-family: var(--font); }
.bub, .cmsgs, .ccomp textarea, .gcap, .gc, .fe, .pbio, .pstatus, .hint, p, li, td, th { font-family: var(--font); }
.bub { font-size: .82rem; } .gn { font-size: .78rem; } .ccomp textarea { font-size: .82rem; } small, .muted { font-size: .78rem; }
.tbl table, table { font-size: .84rem; } code, .cmd { font-family: var(--font); }

/* ---- latar: tanah gelap seperti menu game ---- */
html { image-rendering: auto; }
body { background-color: #2b1d12; background-image: url("tex/dirt.png"); background-size: 64px 64px; background-repeat: repeat; }
body::before { background-image: none; background: rgba(0, 0, 0, .66); opacity: 1; }
:root[data-theme="dark"] body::before { background: rgba(0, 0, 0, .78); }
body, .cva img, .pban, .hub img, .fe .fi, .gbtn img, .rkc img, .rc img, .tl.ic img, .pin img, .bdg img, .cimg { image-rendering: pixelated; }
.cimg, .gimg img, .gone .gonei img, .cva img[src*="/uploads/"] { image-rendering: auto; }
.top { background: #1b1b1b url("tex/deepslate.png") repeat; background-size: 48px 48px; border-bottom: 4px solid #000; box-shadow: 0 4px 0 rgba(0,0,0,.35); image-rendering: pixelated; }
.top::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); pointer-events: none; z-index: 0; } .top > * { position: relative; z-index: 1; }
footer.foot { background: #1b1b1b url("tex/dirt.png") repeat; background-size: 48px 48px; image-rendering: pixelated; position: relative; border-top: 4px solid #000; color: #ccc; } footer.foot::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.7); } footer.foot > * { position: relative; }
/* judul halaman yang langsung di atas tanah harus terang */
main .wrap > h1, main .wrap > .row > h1, main .wrap > .row:first-child > h1, main .wrap > .tabs, main .wrap > p { color: #fff; text-shadow: 3px 3px 0 #3f3f3f; }
main .wrap > .hint, main .wrap > .row .hint, main .wrap > .row > .muted { color: #ddd; text-shadow: 2px 2px 0 #3f3f3f; }

/* ---- panel = jendela inventaris ---- */
.panel, .pcard, .kbar, .hub, .chatwrap, .klanroom, .gcard-post, .rkc, .modal .box { border: 3px solid #000; border-radius: 0; background: var(--panel); color: var(--ink); box-shadow: inset 3px 3px 0 var(--hi), inset -3px -3px 0 var(--lo); }
.panel h2, .panel h3 { color: #404040; } :root[data-theme="dark"] .panel h2, :root[data-theme="dark"] .panel h3 { color: #e6e6e6; }
.panel .muted, .panel small, .hint { color: var(--muted); }
.alert { border-radius: 0; border: 3px solid #000; }

/* ---- tombol bergaya game ---- */
.btn, button.tab, a.tab, .tl, .gbtn, .opt, .cv { image-rendering: pixelated; }
.btn { font-family: var(--font-pix); border: 3px solid #000; border-radius: 0; background: #707070; color: #fff; text-shadow: 2px 2px 0 #3a3a3a; text-transform: none; letter-spacing: 0;
  box-shadow: inset 3px 3px 0 #b4b4b4, inset -3px -3px 0 #3f3f3f; filter: none; }
.btn:hover { background: #7a7fb8; color: #ffffa0; filter: none; text-decoration: none; }
.btn:active { box-shadow: inset 3px 3px 0 #3f3f3f, inset -3px -3px 0 #b4b4b4; transform: none; }
.btn:disabled, .btn.off { background: #555; color: #999; text-shadow: none; box-shadow: inset 3px 3px 0 #6a6a6a, inset -3px -3px 0 #3a3a3a; filter: none; }
.btn.gold { background: #d99a12; color: #2a1d00; text-shadow: none; box-shadow: inset 3px 3px 0 #ffd66b, inset -3px -3px 0 #8a5a00; } .btn.gold:hover { background: #f0b52a; color: #000; }
.btn.red { background: #b3382a; box-shadow: inset 3px 3px 0 #e36b5c, inset -3px -3px 0 #6d1d14; }
.btn.blue { background: #3a6fb8; box-shadow: inset 3px 3px 0 #77a6e6, inset -3px -3px 0 #1d3f73; }
.btn:not(.gold):not(.red):not(.blue):not(.stone) { background: #4e9a1f; box-shadow: inset 3px 3px 0 #86d14f, inset -3px -3px 0 #285a0b; } .btn:not(.gold):not(.red):not(.blue):not(.stone):hover { background: #66b82e; color: #ffffa0; }
.btn.stone { background: #707070; }
.btn.sm { min-height: 32px; padding: 5px 10px; }
.iconbtn { border-radius: 0; border: 3px solid #000; background: #707070; box-shadow: inset 2px 2px 0 #b4b4b4, inset -2px -2px 0 #3f3f3f; color: #fff; }
.iconbtn:hover { background: #7a7fb8; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=search], input[type=url], input[type=email], select, textarea {
  background: #000; color: #fff; border: 2px solid #a0a0a0; border-radius: 0; box-shadow: none; font-family: var(--font); }
input::placeholder, textarea::placeholder { color: #8a8a8a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #fff; }
label { color: #404040; } :root[data-theme="dark"] label { color: #c8c8c8; }
main .wrap > .tabs { margin-bottom: 14px; }
.tab { font-family: var(--font-pix); font-size: .74rem; border: 3px solid #000; border-radius: 0; background: #707070; color: #fff; text-shadow: 2px 2px 0 #3a3a3a; box-shadow: inset 3px 3px 0 #b4b4b4, inset -3px -3px 0 #3f3f3f; padding: 8px 12px; text-decoration: none; cursor: pointer; }
.tab:hover { background: #7a7fb8; color: #ffffa0; text-decoration: none; }
.tab.on { background: #4e9a1f; box-shadow: inset 3px 3px 0 #86d14f, inset -3px -3px 0 #285a0b; }
.badge { border-radius: 0; border: 2px solid #000; background: var(--red); color: #fff; font-family: var(--font-pix); font-size: .6rem; text-shadow: 1px 1px 0 #000; }

/* ---- slot (kotak item) ---- */
.cva { border-radius: 0; background: var(--slot) url("icons/player_head.png") center / 74% no-repeat; border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); box-sizing: content-box; width: var(--s, 64px); height: var(--s, 64px); }
:root[data-theme="dark"] .cva { border-color: #000 #555 #555 #000; }
.cva img, .cva .cva-fx { border-radius: 0; inset: 0; } .cva-fr { border-radius: 0; }
.pav { border-radius: 0; background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); padding: 3px; }
.pav .cva { border: 0; } .gemb { border-radius: 0; border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); background: var(--slot); width: var(--s, 48px); height: var(--s, 48px); display: inline-grid; place-items: center; overflow: hidden; flex: none; } .gemb img { width: 100%; height: 100%; object-fit: cover; } .gemb b { font-family: var(--font-pix); font-size: calc(var(--s, 48px) * .3); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.bdg, .pin, .rkc, .opt, .sw { border-radius: 0; } .bdg { background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); color: #fff; } .bdg b { text-shadow: 2px 2px 0 #3f3f3f; } .bdg small { color: #ddd; }
.pin { background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.lvchip { border-radius: 0; border: 2px solid #000; background: #80ff20; color: #0a2a00; text-shadow: none; box-shadow: inset 2px 2px 0 #c9ff9a, inset -2px -2px 0 #3a9a00; }
.gtag { font-family: var(--font-pix); font-size: .7rem; color: #b86a00; } :root[data-theme="dark"] .gtag, .gchat .gtag, .cthread .gtag { color: #ffaa00; }
/* ---- tooltip item ungu ala game ---- */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 50; background: #100010; color: #fff; border: 2px solid #2d0b59; padding: 5px 9px; font: 400 .74rem var(--font-pix); white-space: nowrap; text-shadow: 2px 2px 0 #3f3f3f; box-shadow: inset 0 0 0 2px #1a0638; pointer-events: none; max-width: 260px; white-space: normal; width: max-content; }
.opt { font-family: var(--font-pix); border: 3px solid #000; background: #707070; color: #fff; text-shadow: 2px 2px 0 #3a3a3a; box-shadow: inset 3px 3px 0 #b4b4b4, inset -3px -3px 0 #3f3f3f; } .opt:hover:not(.lock) { background: #7a7fb8; } .opt.on { background: #4e9a1f; box-shadow: inset 3px 3px 0 #86d14f, inset -3px -3px 0 #285a0b; } .opt.lock { opacity: .55; }
.sw { border: 3px solid #000; }

/* ---- bar XP hijau bersegmen ---- */
.xpbar { height: 14px; background: #1a1a1a; border: 2px solid #000; border-radius: 0; position: relative; overflow: hidden; box-shadow: inset 0 2px 0 #000; }
.xpbar i { background: #80ff20; box-shadow: inset 0 3px 0 #c9ff9a, inset 0 -3px 0 #3a9a00; }
.xpbar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(0,0,0,.55) 7px 9px); pointer-events: none; }
.xpbar.big { height: 20px; }
.plv .row b, .lvbig b { color: #80ff20; text-shadow: 3px 3px 0 #000; font-family: var(--font-pix); }
.plv .row b { font-size: 1.05rem; } .lvhero .lvbig { background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); color: #fff; } .lvbig span { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.lvrow { border-radius: 0; background: var(--slot); border-left: 5px solid #555; color: #fff; } .lvrow b { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; } .lvrow.got { border-left-color: #80ff20; } .lvrow.got b { color: #80ff20; }

/* ---- kartu profil ---- */
.pcard { overflow: hidden; } .pban { border-bottom: 3px solid #000; background-color: var(--acc); background-size: 64px 64px; image-rendering: pixelated; } .pban::before { background: rgba(0,0,0,.22); }
.pid h1 { color: var(--ink); } .ptitle { border-radius: 0; background: #100010; color: #ffff55; border: 2px solid #2d0b59; text-shadow: 2px 2px 0 #3f3f3f; }
.pstatus { border-radius: 0; background: var(--panel2); } .pcount a, .pcount div { color: var(--ink); } .pcount b { color: var(--ink); }

/* ---- hub, galeri, aktivitas, rekap ---- */
.hub { background: var(--panel); transition: none; box-shadow: inset 3px 3px 0 var(--hi), inset -3px -3px 0 var(--lo); } .hub:hover { transform: none; background: #d6d6d6; } :root[data-theme="dark"] .hub:hover { background: #454545; }
.hub img { background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); padding: 4px; width: 52px; height: 52px; } .hub b { color: #404040; text-shadow: none; font-family: var(--font-pix); font-size: .86rem; } :root[data-theme="dark"] .hub b { color: #fff; } .hub small { color: var(--muted); }
.fe { border-bottom: 2px solid rgba(0,0,0,.18); } .fe .fi { background: var(--slot); border: 2px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); padding: 2px; width: 34px; height: 34px; }
.gcard-post { border-width: 8px; border-style: solid; border-color: #7a5230; border-image: url("tex/oak_planks.png") 4 / 8px round; background: var(--panel); box-shadow: 0 4px 0 rgba(0,0,0,.5); border-radius: 0; overflow: visible; }
.gimg { background: #000; } .gbtn { border-radius: 0; border: 2px solid #000; background: #707070; color: #fff; text-shadow: 2px 2px 0 #3a3a3a; box-shadow: inset 2px 2px 0 #b4b4b4, inset -2px -2px 0 #3f3f3f; font-family: var(--font-pix); font-size: .66rem; } .gbtn.on { background: #d99a12; color: #2a1d00; text-shadow: none; } .gbtn.red { color: #ffd0cb; background: #8f2a20; }
.gone .gonei img { border: 4px solid #000; border-radius: 0; } .gtop .gtopt { color: #fff; text-shadow: 3px 3px 0 #3f3f3f; }
.rkhero div { border-radius: 0; background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); } .rkhero span { color: #ddd; } .rkhero b { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.rkc { background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); color: #fff; } .rkc b { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; } .rkc span { color: #ddd; }

/* ================= CHAT bergaya chat dalam game ================= */
.chatwrap, .klanroom { --them: rgba(0,0,0,.52); --line: rgba(255,255,255,.15); }
.chatwrap { display: grid; grid-template-columns: 330px 1fr; padding: 6px; gap: 6px; height: calc(100vh - 150px); min-height: 520px; max-height: 780px; }
.clist { display: flex; flex-direction: column; min-height: 0; background: transparent; border: 0; padding: 0; }
.chead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 8px; } .chead h1 { margin: 0; font-size: 1.15rem; color: #404040; text-shadow: none; } :root[data-theme="dark"] .chead h1 { color: #fff; }
.csearch { margin: 0 0 8px; } .csearch input { border-radius: 0; padding: 8px 10px; }
.tabs.sm { display: flex; gap: 6px; margin: 0 0 8px; padding: 0; } .tabs.sm .tab { padding: 6px 10px; font-size: .66rem; }
.convs { overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 4px; background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); padding: 4px; }
.cv { display: flex; gap: 10px; align-items: center; padding: 6px; border: 2px solid transparent; background: rgba(0,0,0,.18); color: #fff; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.cv:hover { background: rgba(255,255,255,.28); } .cv.on { border-color: #fff; background: rgba(255,255,255,.2); }
.cvmid { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cvmid b { font-family: var(--font-pix); font-size: .78rem; text-shadow: 2px 2px 0 #3f3f3f; } .cvmid small { color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 0 #3f3f3f; }
.cvr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .cvr small { color: #aaa; font-size: .64rem; }
.cthread { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 3px solid #000; background: linear-gradient(rgba(0,0,0,.74), rgba(0,0,0,.74)), url("tex/deepslate.png"); background-size: auto, 64px 64px; image-rendering: pixelated; color: #fff; }
.cempty { margin: auto; text-align: center; padding: 28px; color: #ddd; max-width: 340px; text-shadow: 2px 2px 0 #3f3f3f; } .cempty .ico { width: 48px; height: 48px; opacity: .6; }
.cbox { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ctop { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0,0,0,.55); border-bottom: 3px solid #000; flex-wrap: wrap; }
.cpeer { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; } .cpn { display: flex; flex-direction: column; line-height: 1.3; } .cpn b { font-family: var(--font-pix); font-size: .86rem; text-shadow: 2px 2px 0 #3f3f3f; } .cpn small { color: #bbb; }
.cback { display: none; }
.creq { padding: 12px; background: #5a4a10; border-bottom: 3px solid #000; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; } .creq p { margin: 0 0 8px; }
.cmsgs { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; min-height: 120px; background: none; }
.cday { align-self: center; font-family: var(--font-pix); font-size: .62rem; color: #ddd; background: rgba(0,0,0,.6); border: 2px solid #000; padding: 3px 10px; margin: 10px 0 6px; text-shadow: 1px 1px 0 #000; border-radius: 0; }
.mrow { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; } .mrow.first { margin-top: 12px; }
.mrow.mine { flex-direction: row; } .mrow.mine .mav { display: block; }
.mav { width: calc(34px + 6px); flex: none; } .mrow:not(.first) .mav > * { visibility: hidden; height: 0; } .mrow:not(.first) .mav { height: 0; }
.mcol { display: flex; flex-direction: column; flex: 1; min-width: 0; max-width: 100%; position: relative; } .mrow.mine .mcol { align-items: flex-start; }
.gn { display: flex; align-items: baseline; gap: 8px; margin: 0 0 2px; font-family: var(--font-pix); font-size: .8rem; text-shadow: 2px 2px 0 #3f3f3f; color: var(--mcaqua); }
.gn.me b { color: var(--mcgreen); } .gn.r-ketua b { color: var(--mcgold); } .gn.r-wakil b { color: var(--mcyellow); } .gn small { color: #aaa; font-size: .62rem; font-family: var(--font); text-shadow: 1px 1px 0 #000; } .gn small.t { margin-left: auto; }
.bub { background: rgba(0,0,0,.46); color: #fff; border: 0; border-left: 3px solid transparent; border-radius: 0; padding: 3px 9px; text-shadow: 2px 2px 0 #3f3f3f; box-shadow: none; display: inline-block; max-width: min(100%, 640px); word-break: break-word; position: relative; font-size: .92rem; }
.mrow.mine .bub { background: rgba(0,0,0,.46); color: #fff; border-left-color: var(--mcgreen); } .mrow.theirs .bub { border-left-color: transparent; } .bub:hover { background: rgba(0,0,0,.62); }
.mrow.theirs:not(.first) .bub, .mrow.mine:not(.first) .bub, .mrow:not(.last) .bub { border-radius: 0; }
.bub.del { opacity: .55; font-style: italic; } .bub .txt { white-space: pre-wrap; line-height: 1.45; }
.bub .meta { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .62rem; color: #aaa; text-shadow: 1px 1px 0 #000; float: right; padding-left: 8px; } .bub .meta .tk { width: 14px; height: 14px; color: #888; } .bub .meta .tk.rd { color: #55ffff; }
.cimg { max-width: 260px; max-height: 260px; display: block; margin: 4px 0; border: 3px solid #fff; outline: 2px solid #000; border-radius: 0; object-fit: cover; }
.quote { border-left: 3px solid #aaa; background: rgba(255,255,255,.1); padding: 2px 8px; margin: 2px 0 4px; font-size: .78rem; display: flex; flex-direction: column; border-radius: 0; color: #ddd; } .quote b { color: var(--mcyellow); font-family: var(--font-pix); font-size: .7rem; }
.reacts { display: flex; gap: 4px; margin: 3px 0 0; flex-wrap: wrap; } .mrow.mine .reacts { justify-content: flex-start; }
.rc { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; font-family: var(--font-pix); font-size: .62rem; color: #fff; border: 2px solid; border-color: #373737 #fff #fff #373737; background: #8b8b8b; border-radius: 0; cursor: pointer; text-shadow: 1px 1px 0 #3f3f3f; } .rc.me { background: #d99a12; color: #2a1d00; text-shadow: none; } .rc img { width: 14px; height: 14px; }
.tools { display: none; position: absolute; top: -30px; right: 0; background: #000; border: 2px solid #a0a0a0; padding: 3px; gap: 3px; z-index: 5; white-space: nowrap; } .mrow:hover .tools, .mrow.sel .tools { display: flex; }
.tl { font-family: var(--font-pix); font-size: .6rem; padding: 3px 7px; border: 2px solid #000; background: #707070; color: #fff; text-shadow: 1px 1px 0 #3a3a3a; cursor: pointer; border-radius: 0; box-shadow: inset 2px 2px 0 #b4b4b4, inset -2px -2px 0 #3f3f3f; } .tl:hover { background: #7a7fb8; color: #ffffa0; } .tl.ic { padding: 2px 3px; } .tl.ic img { width: 16px; height: 16px; display: block; } .tl.red { background: #8f2a20; box-shadow: inset 2px 2px 0 #e36b5c, inset -2px -2px 0 #6d1d14; }
.cnote { padding: 6px 12px; font-size: .74rem; color: #ddd; background: rgba(0,0,0,.6); border-top: 2px solid #000; text-align: center; text-shadow: 1px 1px 0 #000; }
.creply { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 12px; background: rgba(0,0,0,.6); border-top: 2px solid #000; border-left: 4px solid var(--mcgreen); font-size: .76rem; color: #ddd; }
.ccomp { display: flex; gap: 6px; padding: 8px; align-items: flex-end; background: rgba(0,0,0,.72); border-top: 3px solid #000; }
.ccomp textarea { flex: 1; resize: none; max-height: 120px; min-height: 40px; border-radius: 0; padding: 9px 11px; background: rgba(0,0,0,.65); border: 2px solid #a0a0a0; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; font-family: var(--font); line-height: 1.35; }
.ccomp .btn, .ccomp .iconbtn { width: 44px; height: 42px; min-height: 42px; padding: 0; font-size: 0; gap: 0; display: inline-grid; place-items: center; flex: none; border-radius: 0; } .ccomp .btn .ico { width: 20px; height: 20px; stroke: #fff; } .ccomp .attach { cursor: pointer; } .ccomp .attach .ico { stroke: #fff; width: 20px; height: 20px; }
.cfile { padding: 5px 12px; font-size: .74rem; background: #1d3f73; color: #fff; cursor: pointer; text-shadow: 1px 1px 0 #000; }
.plist .pl { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 2px solid rgba(0,0,0,.18); } .plist .pl:last-child { border: 0; }
.plink { color: inherit; } .plink b { font-family: var(--font-pix); font-size: .8rem; }

/* ================= RUANG KLAN ================= */
.kbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 12px; }
.kbar h1 { margin: 0; font-size: 1.2rem; color: #404040; text-shadow: none; } :root[data-theme="dark"] .kbar h1 { color: #fff; } .kbar .ks { color: var(--muted); font-size: .8rem; margin-top: 3px; } .kbar .sp { flex: 1; }
.klanroom { display: grid; grid-template-columns: 1fr 320px; gap: 6px; padding: 6px; height: calc(100vh - 240px); min-height: 520px; max-height: 780px; }
.kmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 3px solid #000; background: linear-gradient(rgba(0,0,0,.74), rgba(0,0,0,.74)), url("tex/deepslate.png"); background-size: auto, 64px 64px; image-rendering: pixelated; color: #fff; }
.khead { padding: 8px 12px; background: rgba(0,0,0,.55); border-bottom: 3px solid #000; display: flex; align-items: center; gap: 8px; font-family: var(--font-pix); font-size: .82rem; text-shadow: 2px 2px 0 #3f3f3f; }
.khead small { color: #aaa; font-family: var(--font); }
.kann { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; background: #1d3f73; border-bottom: 3px solid #000; font-size: .84rem; text-shadow: 2px 2px 0 #000; } .kann .ico { flex: none; }
.kside { display: flex; flex-direction: column; min-height: 0; background: transparent; border: 0; }
.ktabs { display: flex; gap: 6px; padding: 0 0 6px; } .ktabs button { flex: 1; font-family: var(--font-pix); font-size: .62rem; padding: 7px 4px; border: 3px solid #000; background: #707070; color: #fff; text-shadow: 2px 2px 0 #3a3a3a; cursor: pointer; border-radius: 0; box-shadow: inset 3px 3px 0 #b4b4b4, inset -3px -3px 0 #3f3f3f; } .ktabs button.on { background: #4e9a1f; box-shadow: inset 3px 3px 0 #86d14f, inset -3px -3px 0 #285a0b; }
.kpane { overflow: auto; flex: 1; background: var(--slot); border: 3px solid; border-color: var(--slot-edge) #fff #fff var(--slot-edge); padding: 6px; color: #fff; } .kpane[hidden] { display: none !important; }
.kpane label { color: #ddd; text-shadow: 1px 1px 0 #000; } .kpane h3 { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.mb { display: flex; align-items: center; gap: 10px; padding: 6px; background: rgba(0,0,0,.2); margin-bottom: 4px; } .mb:hover { background: rgba(255,255,255,.22); }
.mb .mbn { flex: 1; min-width: 0; line-height: 1.25; } .mb .mbn a { color: #fff; font-family: var(--font-pix); font-size: .76rem; text-shadow: 2px 2px 0 #3f3f3f; text-decoration: none; } .mb .mbn small { display: block; color: #ccc; font-size: .7rem; }
.mb .rl { font-family: var(--font-pix); font-size: .54rem; padding: 1px 5px; border: 2px solid #000; background: #d99a12; color: #2a1d00; margin-left: 6px; } .mb .rl.w { background: #4e9a1f; color: #fff; }
.mb .dotm { width: 10px; height: 10px; background: #555; border: 2px solid #000; flex: none; } .mb .dotm.on { background: #55ff55; }
.mb .mba { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; } .mb .mba .btn { font-size: .56rem; padding: 2px 6px; min-height: 24px; }
.kform { padding: 8px; }
.kbar .gemb { --s: 56px; }

/* ---- jendela (modal) ala GUI ---- */
.modal .box h2 { color: #404040; }
.acts .btn { min-width: 90px; }

@media (max-width: 860px) { .klanroom { grid-template-columns: 1fr; height: auto; max-height: none; } .kmain { height: 70vh; min-height: 420px; } .kside { max-height: 420px; } }
@media (max-width: 760px) {
  .chatwrap { grid-template-columns: 1fr; height: calc(100vh - 140px); }
  .cthread { display: none; } .chatwrap.open .cthread { display: flex; } .chatwrap.open .clist { display: none; }
  .cback { display: inline-flex; } .mav { width: 40px; }
}
@media (max-width: 560px) { .kbar { flex-wrap: wrap; } .kbar > div:not(.sp) { flex: 1; min-width: 0; } .kbar .gemb { --s: 48px; } }
.chatwrap [hidden], .klanroom [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---- perbaikan keterbacaan di atas tanah ---- */
main .wrap > h2, main .wrap > h3, main .wrap > section > h2, main .wrap > .row > h2 { color: #fff; text-shadow: 3px 3px 0 #3f3f3f; }
main .hint, main .wrap > .row .hint { color: #ddd; text-shadow: 2px 2px 0 #3f3f3f; }
.panel .hint, .pcard .hint, .kpane .hint, .kbar .hint, .modal .hint, .alert .hint { color: var(--muted); text-shadow: none; }
.hub, .hub:hover, .hub:hover * { text-decoration: none; }
.pban::before { background: rgba(0, 0, 0, .08); }
main a:not(.btn):not(.tab):not(.hub):not(.plink):not(.cpeer):not(.gimg):not(.gbtn) { color: #2b6cb0; } :root[data-theme="dark"] main a:not(.btn):not(.tab):not(.hub):not(.plink):not(.cpeer):not(.gimg):not(.gbtn) { color: #7fb6ff; }
main .wrap > .row > a:not(.btn):not(.tab), main .wrap > a:not(.btn) { color: #8fc4ff; }
main .wrap > .tabs { text-shadow: none; }
.tab, a.tab, button.tab { color: #fff !important; text-shadow: 2px 2px 0 #3a3a3a !important; }

/* ---- teks di luar panel (langsung di atas tanah) terang; di dalam panel tetap gelap ---- */
main .wrap { color: #eee; text-shadow: 2px 2px 0 #3f3f3f; }
.panel, .pcard, .alert, .modal .box, .kbar, .hub, .gcard-post, .chatwrap .clist, .tbl, .field, .rkc { text-shadow: none; }
.panel, .pcard, .kbar, .hub, .gcard-post, .tbl, .field { color: var(--ink); }
.alert { color: #262626; } :root[data-theme="dark"] .alert { color: #eee; }
label { color: inherit; } .panel label, .pcard label, .kbar label, .field label { color: #404040; } :root[data-theme="dark"] .panel label, :root[data-theme="dark"] .field label { color: #c8c8c8; }
main .wrap .live, main .wrap .check span, main .wrap label.check { color: #eee; }
.panel .live, .panel .check, .panel label.check, .field .check { color: var(--ink); }
small, .muted { color: var(--muted); } main .wrap > .row small, main .wrap > .row .muted, main .wrap > small, main .wrap > .muted, .edprev .hint { color: #ccc; }
.panel small, .pcard small, .kbar small { color: var(--muted); }
.cthread, .kmain, .cthread *, .kmain * { text-shadow: inherit; }
main .wrap label { color: #eee; }
main .wrap .panel label, main .wrap .pcard label, main .wrap .kbar label, main .wrap .field label, main .wrap .modal label { color: #404040; }
:root[data-theme="dark"] main .wrap .panel label, :root[data-theme="dark"] main .wrap .field label { color: #c8c8c8; }
main .wrap .panel .live, main .wrap .pcard .live, main .wrap .kbar .live, main .wrap .panel .check, main .wrap .panel label.check { color: var(--ink); }
main .wrap .panel .muted, main .wrap .panel small, main .wrap .pcard small { color: var(--muted); }
main .wrap .cthread, main .wrap .cthread label, main .wrap .kmain, main .wrap .kpane label { color: #eee; }
/* HP: bilah klan tidak boleh memeras teks */
.kbar { flex-wrap: wrap; }
.kbar > div:not(.gemb) { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kbar > .btn, .kbar > .chip, .kbar > .hint { flex: 1 0 100%; text-align: center; } .kbar > .sp { display: none; } }
/* HP: tabel muat layar (teks turun baris), kolom tanggal penuh lebar */
@media (max-width: 560px) {
  .tbl table { width: 100%; font-size: .74rem; } .tbl th, .tbl td { padding: 6px 5px; overflow-wrap: anywhere; white-space: normal; }
  input[type=datetime-local], input[type=date], input[type=time] { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 40px; background: #000; color: #fff; border: 2px solid #555; font-family: var(--font); }
}
@media (max-width: 560px) { .tbl th { white-space: nowrap; } }
.steps2{margin:0;padding-left:20px;line-height:1.7}.steps2 li{margin-bottom:4px}
/* Laptop/desktop sedang: menu utama turun ke baris kedua supaya tidak menumpuk dengan poin dan akun */
@media (min-width: 1181px) {
  .top .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 4px; }
  .brand { order: 1; } .ptsbox { order: 2; margin-left: auto; } .usr { order: 3; }
  .nav { order: 10; flex: 1 0 100%; margin: 0; padding-top: 4px; border-top: 2px solid rgba(255,255,255,.1); }
}
.nav a { color: #f3eedd; text-shadow: 2px 2px 0 #000; }
.xpbar.sm { height: 6px; margin: 4px 0 2px; }

.vrk{margin:0 0 14px}.vrk h4{margin:0 0 6px}.vrk h4 small{font-weight:400;opacity:.75;margin-left:6px}
.vrapi:not([hidden]){display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;align-items:start}
.vrapi .vrk{margin:0;padding:8px 10px;background:rgba(0,0,0,.14);border:3px solid #000;border-color:#373737 #fff #fff #373737}
.vrapi .vrk .igrid{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
