/* bug.bntk.fun, in the game's Mực tàu colours as thietke.bntk.fun. Radius 0. */
:root { --ground: #111315; --panel: #1a1d20; --line: #6a7078; --text: #e6e8ea; --dim: #a9aeb5; --strong: #fff; --accent: #e8e2d0; --accent-ink: #111315; --gold: #d9b45f; --red: #d9685f; --ok: #8fcf8f; --rule: #2a2e33; --hover: #202428; --wrap: 900px; color-scheme: dark; }
:root[data-theme="light"] { --ground: #f3f0e8; --panel: #fffdf8; --line: #8b9097; --text: #1d2023; --dim: #5a6067; --strong: #000; --accent: #1d2023; --accent-ink: #f3f0e8; --gold: #8a6512; --red: #b3382f; --ok: #2f7a3a; --rule: #ddd8cc; --hover: #efebe0; color-scheme: light; }
* { box-sizing: border-box; }
html { background: var(--ground); scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 15px/1.55 "Be Vietnam Pro", system-ui, sans-serif; }
a { color: var(--strong); }
.top { display: flex; align-items: center; gap: 24px; padding: 14px 32px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.top nav { display: flex; gap: 18px; flex: 1; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a.on { color: var(--strong); border-bottom: 1px solid var(--accent); }
.tools, .who { display: flex; gap: 10px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px/1.2 "Noto Serif", Georgia, serif; color: var(--strong); text-decoration: none; }
.lang button { background: none; border: 1px solid var(--line); color: var(--dim); padding: 2px 8px; cursor: pointer; font: inherit; height: auto; }
.lang button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
main, footer { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
footer { padding-top: 24px; padding-bottom: 32px; color: var(--dim); font-size: 13px; }
h1 { font: 600 30px/1.25 "Noto Serif", Georgia, serif; color: var(--strong); margin: 8px 0; }
h2 { font: 600 20px/1.3 "Noto Serif", Georgia, serif; color: var(--strong); margin: 0 0 12px; }
.lead { color: var(--dim); max-width: 700px; margin: 0 0 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 20px; margin-bottom: 20px; display: grid; gap: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
input, select, textarea { background: var(--ground); color: var(--text); border: 1px solid var(--line); padding: 8px 10px; font: inherit; border-radius: 0; min-width: 0; }
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); }
button, .btn { background: var(--accent); color: var(--accent-ink); border: 0; padding: 0 16px; height: 40px; font: 600 14px "Be Vietnam Pro", sans-serif; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; border-radius: 0; }
button.ghost, .btn.ghost { background: none; color: var(--text); border: 1px solid var(--line); }
button.small { height: 32px; padding: 0 10px; font-size: 13px; }
button.icon { height: 32px; width: 32px; padding: 0; justify-content: center; background: none; color: var(--red); border: 1px solid var(--line); }
button.danger { background: var(--red); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
.list { display: grid; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: var(--panel); padding: 12px 16px; text-decoration: none; color: var(--text); }
.item:hover { border-color: var(--accent); }
.item .t { display: grid; gap: 2px; min-width: 0; }
.item .t b { color: var(--strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--dim); font-size: 13px; }
.tag { font-size: 11px; line-height: 1; padding: 3px 7px 2px; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.tag.s-open { color: var(--gold); border-color: var(--gold); }
.tag.s-confirmed { color: var(--red); border-color: var(--red); }
.tag.s-fixed { color: var(--ok); border-color: var(--ok); }
.warn { color: var(--gold); font-size: 13px; margin: 0; }
.warn.err { color: var(--red); }
.drop { border: 1px dashed var(--line); padding: 22px; text-align: center; color: var(--dim); cursor: pointer; }
.drop.over { border-color: var(--accent); color: var(--text); background: var(--hover); }
.files { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.file { border: 1px solid var(--line); background: var(--ground); position: relative; display: grid; }
.file img, .file video { width: 100%; height: 110px; object-fit: cover; display: block; background: #000; }
.file .cap { font-size: 12px; padding: 6px 8px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .prog { height: 3px; background: var(--rule); }
.file .prog i { display: block; height: 100%; background: var(--accent); width: 0; }
.file.err .cap { color: var(--red); }
.file button.icon { position: absolute; top: 4px; right: 4px; background: var(--panel); }
.media { margin-bottom: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.media img, .media video { width: 100%; max-height: 360px; object-fit: contain; background: #000; display: block; border: 1px solid var(--line); }
.body { white-space: pre-wrap; overflow-wrap: anywhere; }
.note { border-left: 2px solid var(--gold); padding: 6px 12px; }
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .top { padding: 12px 16px; gap: 12px; }
  main, footer { padding-left: 16px; padding-right: 16px; }
  .grid2 { grid-template-columns: 1fr; }
}
