/* brass.css — bahan bersama arah UI "Observatory Brass" (kuningan berukir, enamel ungu, perkamen).
   Dipakai hud.css, menu.css, social.css. Asal: dev/ui-dir/a/style.css. Token warna merek tetap di base.css. */
:root {
  /* kuningan */
  --brass-hi: #fff1c6;
  --brass-1: #f2d48a;
  --brass-2: #d6a94e;
  --brass-3: #a8792c;
  --brass-4: #6f4c14;
  --brass-ink: #4a3210;          /* garis ukiran */
  --brass-bar: linear-gradient(180deg, #fdf0c4 0%, #ecc979 16%, #c99a45 46%, #9c6f26 54%, #c4954a 78%, #f0d38c 100%);
  --brass-ring: conic-gradient(from 200deg, #8a611e, #f7e1a1 8%, #c7983f 18%, #7f5819 30%, #e9c777 43%, #fff2c8 50%, #b8893a 60%, #84601f 72%, #f2d589 86%, #8a611e);
  --knurl: repeating-conic-gradient(from 0deg, #6a4813 0deg 2.2deg, #e8c879 2.2deg 4.5deg);

  /* enamel */
  --enamel: radial-gradient(130% 110% at 28% 10%, #5b45c6 0%, #3b2a98 42%, #22195e 100%);
  --enamel-night: linear-gradient(180deg, #2a2156 0%, #1b1540 60%, #151033 100%);

  /* perkamen */
  --parch: #f5ecd6;
  --parch-2: #eadcb9;
  --parch-ink: #2a2236;
  --parch-ink-2: #6a5c48;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .33  0 0 0 0 .15  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.22'/></svg>");
}

/* ================= material dasar ================= */
.brass-plate {
  background: var(--brass-bar);
  box-shadow: inset 0 1px 0 rgba(255, 250, 225, .9), inset 0 -1px 0 rgba(70, 45, 10, .55), 0 0 0 1px rgba(74, 50, 16, .85), 0 4px 10px -4px rgba(30, 18, 0, .55);
}
.engraved { color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 244, 205, .75); }
.rivet {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8dc 0 15%, #e2b862 38%, #82591a 74%, #3f2a08 100%);
  box-shadow: 0 1px 0 rgba(255, 245, 210, .55), 0 0 0 1px rgba(60, 40, 8, .35);
}
.parch {
  background-color: var(--parch);
  background-image: var(--grain), radial-gradient(140% 120% at 50% 40%, rgba(255, 255, 255, 0) 55%, rgba(150, 110, 45, .22) 100%);
  color: var(--parch-ink);
}
.enamel {
  background: var(--enamel);
  box-shadow: inset 0 1px 0 rgba(200, 185, 255, .35), inset 0 -2px 6px rgba(10, 5, 40, .5);
  color: #f6f1ff;
}
/* bingkai kuningan tipis untuk panel enamel/perkamen */
.rim { box-shadow: 0 0 0 1px #4a3210, 0 0 0 2.5px #e7c574, 0 0 0 3.5px #7a5418, 0 8px 22px -8px rgba(25, 15, 0, .6); }

/* tombol kunci kuningan berukir (E, 1–6, Enter) */
.key {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 4px;
  font: 600 11px/1 var(--f-mono); color: var(--brass-ink);
  background: linear-gradient(180deg, #fbebb8, #d7aa52 60%, #b5862f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 240, .9), 0 0 0 1px #5a3d10, 0 2px 0 #5a3d10;
  text-shadow: 0 1px 0 rgba(255, 244, 205, .7);
  vertical-align: middle;
}

/* tombol berukir */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 6px; border: 0;
  font: 800 12.5px/1 var(--f-ui); letter-spacing: .01em; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-enamel { background: var(--enamel); color: #fff; box-shadow: inset 0 1px 0 rgba(210, 195, 255, .45), 0 0 0 1px #2a1c6a, 0 0 0 2.5px #e2bd6b, 0 0 0 3.5px #6f4c14; }
.btn-brass { background: var(--brass-bar); color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 244, 205, .7); box-shadow: inset 0 1px 0 rgba(255, 250, 225, .9), 0 0 0 1px #5a3d10, 0 2px 0 #5a3d10; }
.btn-ghost { background: rgba(120, 90, 40, .08); color: var(--parch-ink); box-shadow: inset 0 0 0 1px rgba(110, 80, 30, .45); }

/* label kapital berukir kecil */
.cap { font: 700 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }

/* permata status */
.jewel { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #e8fff7 0 16%, #5fd3b0 45%, #1e7d62 100%);
  box-shadow: 0 0 0 1.5px #8a611e, 0 0 0 2.5px #f2d48a; }
.jewel.off { background: radial-gradient(circle at 35% 30%, #f4f1fa 0 16%, #a9a3b8 45%, #5d576e 100%); }


/* ===================================================================================
   [menu-agent] primitif kuningan bersama (menu, dialog, Vault). Awalan .wb-* supaya tidak
   bentrok dengan .btn milik base.css. Blok ini hanya ditambah, aturan di atas tidak diubah.
   =================================================================================== */
:root {
  /* alias nama font yang dipakai aturan .key/.cap/.btn di atas (base.css memakai --font-*) */
  --f-display: var(--font-display, 'Fraunces', Georgia, serif);
  --f-ui: var(--font-ui, 'Nunito', system-ui, sans-serif);
  --f-mono: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  /* bevel bingkai kuningan + skala penggaris di empat sisi */
  --brass-frame:
    repeating-linear-gradient(90deg, rgba(60, 40, 8, .55) 0 1px, transparent 1px 12px) 0 3px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, rgba(60, 40, 8, .55) 0 1px, transparent 1px 12px) 0 calc(100% - 3px) / 100% 4px no-repeat,
    repeating-linear-gradient(180deg, rgba(60, 40, 8, .55) 0 1px, transparent 1px 12px) 3px 0 / 4px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(60, 40, 8, .55) 0 1px, transparent 1px 12px) calc(100% - 3px) 0 / 4px 100% no-repeat,
    linear-gradient(135deg, #f8e2a2 0%, #c99a45 18%, #8a611e 34%, #e8c777 52%, #a5762a 70%, #f2d48a 86%, #8a611e 100%);
}
.wb-parch {
  background-color: var(--parch);
  background-image: var(--grain), radial-gradient(140% 120% at 50% 40%, rgba(255, 255, 255, 0) 55%, rgba(150, 110, 45, .22) 100%);
  color: var(--parch-ink);
}
.wb-plate { background: var(--brass-bar); box-shadow: inset 0 1px 0 rgba(255, 250, 225, .9), inset 0 -1px 0 rgba(70, 45, 10, .55), 0 0 0 1px rgba(74, 50, 16, .85), 0 4px 10px -4px rgba(30, 18, 0, .55); }
/* siku kuningan di sudut panel perkamen */
.wb-corner { position: absolute; width: 16px; height: 16px; pointer-events: none; z-index: 1; }
.wb-corner::before { content: ''; position: absolute; inset: 0; border: 2.5px solid #b88a3a; border-right: 0; border-bottom: 0; filter: drop-shadow(0 1px 0 rgba(74, 50, 16, .9)); }
.wb-corner.tl { left: 3px; top: 3px; } .wb-corner.tr { right: 3px; top: 3px; transform: scaleX(-1); }
.wb-corner.bl { left: 3px; bottom: 3px; transform: scaleY(-1); } .wb-corner.br { right: 3px; bottom: 3px; transform: scale(-1); }
/* judul bagian berukir: label kapital + garis ganda */
.wb-sect { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wb-sect .cap { color: #7a5418; }
.wb-sect::after { content: ''; flex: 1; height: 5px; border-top: 1px solid rgba(110, 80, 30, .45); border-bottom: 1px solid rgba(110, 80, 30, .25); }
.wb-sect .cnt { font-size: 11px; color: var(--parch-ink-2); }
.wb-hint { margin: 8px 0 0; font: 600 12px/1.4 var(--f-ui); color: var(--parch-ink-2); }
/* tombol berukir */
.wb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; min-height: 0; padding: 0 12px; border-radius: 6px; border: 0;
  font: 800 12.5px/1 var(--f-ui); letter-spacing: .01em; cursor: pointer; white-space: nowrap; user-select: none;
  transition: filter .15s, transform .1s, box-shadow .15s;
}
.wb-btn svg { width: 14px; height: 14px; flex: none; }
.wb-btn:active:not(:disabled) { transform: translateY(1px); }
.wb-btn:disabled { cursor: default; opacity: .55; }
.wb-btn:focus-visible { outline: 2px solid #6b4fd8; outline-offset: 2px; }
.wb-btn--enamel { background: var(--enamel); color: #fff; box-shadow: inset 0 1px 0 rgba(210, 195, 255, .45), 0 0 0 1px #2a1c6a, 0 0 0 2.5px #e2bd6b, 0 0 0 3.5px #6f4c14; }
.wb-btn--enamel:hover:not(:disabled) { filter: brightness(1.12); }
.wb-btn--brass { background: var(--brass-bar); color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 244, 205, .7); box-shadow: inset 0 1px 0 rgba(255, 250, 225, .9), 0 0 0 1px #5a3d10, 0 2px 0 #5a3d10; }
.wb-btn--brass:hover:not(:disabled) { filter: brightness(1.07) saturate(1.1); }
.wb-btn--ghost { background: rgba(120, 90, 40, .08); color: var(--parch-ink); box-shadow: inset 0 0 0 1px rgba(110, 80, 30, .45); }
.wb-btn--ghost:hover:not(:disabled) { background: rgba(120, 90, 40, .16); }
.wb-btn--icon { width: 30px; padding: 0; background: transparent; color: rgba(74, 50, 16, .55); box-shadow: inset 0 0 0 1px rgba(110, 80, 30, 0); }
.wb-btn--icon:hover { color: #9c3520; box-shadow: inset 0 0 0 1px rgba(156, 53, 32, .4); }
.wb-btn--danger { background: linear-gradient(180deg, #e9785c, #b8432a); color: #fff7e2; box-shadow: inset 0 1px 0 rgba(255, 220, 200, .5), 0 0 0 1px #6e2412; }
.wb-btn--lg { height: 40px; padding: 0 18px; font-size: 14px; }
/* medali kuningan berisi enamel + ikon ukir */
.wz-medal-ic { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; color: #f2d48a;
  background: var(--brass-ring); box-shadow: 0 0 0 1px #3a2708, 0 3px 6px -2px rgba(0, 0, 0, .6); }
.wz-medal-ic::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3c2d8c, #1d1650); box-shadow: inset 0 0 0 1px #3a2708, inset 0 1px 0 rgba(200, 185, 255, .3); }
.wz-medal-ic svg { position: relative; z-index: 1; width: 20px; height: 20px; }
/* avatar kepala hewan dalam cincin kuningan */
.wb-ava { position: relative; display: inline-block; width: 50px; height: 50px; border-radius: 50%; flex: none; background: var(--brass-ring); box-shadow: 0 0 0 1px #3a2708, 0 3px 5px -2px rgba(40, 25, 0, .5); vertical-align: middle; }
.wb-ava > svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; box-shadow: 0 0 0 1px #3a2708; }
.wb-ava .jewel { position: absolute; right: -1px; bottom: 1px; width: 12px; height: 12px; }
.wb-ava.sm { width: 34px; height: 34px; }
.wb-ava.sm > svg { inset: 3px; width: 28px; height: 28px; }
.wb-ava.xs { width: 22px; height: 22px; }
.wb-ava.xs > svg { inset: 2px; width: 18px; height: 18px; }
/* lencana angka kecil */
.wb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--brass-ink); background: linear-gradient(180deg, #fbe7ad, #d9ae58); box-shadow: 0 0 0 1px #5a3d10; }
.wb-badge[hidden] { display: none; }
/* kolom isian di perkamen */
.wb-field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 12px; border-radius: 4px; background: rgba(255, 252, 242, .75); box-shadow: inset 0 1px 2px rgba(90, 60, 20, .35), 0 0 0 1px rgba(110, 80, 30, .45); }
.wb-field > svg { width: 16px; height: 16px; flex: none; color: var(--parch-ink-2); }
.wb-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; letter-spacing: .12em; color: var(--parch-ink); }
.wb-field input::placeholder { color: rgba(42, 34, 54, .38); }
.wb-field:focus-within { box-shadow: inset 0 1px 2px rgba(90, 60, 20, .35), 0 0 0 1px #6b4fd8, 0 0 0 3px rgba(107, 79, 216, .18); }
/* [akhir blok menu-agent] */
