/* Crisp, readable PC HUD inspired by the supplied reference. */
html body.ingame #app :is(button,label,input,select,span,p,small,legend,strong,h2,h3,li), html body.ingame #app :is(dialog,.compact-panel,.mission,.chat,.minimap) div {
  font-family: Tahoma,Arial,sans-serif !important;
  letter-spacing: 0 !important;
}
body.ingame .fs-auto-dialog {width:420px;max-width:calc(100vw - 16px);}
body.ingame .fs-auto-dialog .fs-auto-rotation-grid select {font-size:10.5px!important;font-weight:600!important;padding:1px 2px!important;}
body.ingame .fs-auto-dialog::backdrop {background:rgba(0,0,0,.12);backdrop-filter:none;}
@media(min-width:900px) {
  body.ingame .fs-auto-dialog {left:auto;right:24px;top:50%;margin:0;transform:translateY(-50%);}
}
html body.ingame #app .fs-auto-btn-save {background:linear-gradient(#a55422,#5b260c);border-color:#d3ad58;color:#fff1bd;}
html body.ingame #app .fs-auto-btn-toggle {background:linear-gradient(#417633,#173b1c);border-color:#c8aa55;color:#fff1bd;}
body.ingame .fs-auto-dialog .fs-auto-inner {padding:8px 12px 10px;}
body.ingame .fs-auto-dialog .fs-auto-flame {display:none;}
body.ingame .fs-auto-dialog .fs-auto-form {min-height:200px;display:flex;flex-direction:column;gap:5px;}
body.ingame .fs-auto-dialog [data-auto-pane][hidden] {display:none !important;}
body.ingame .fs-auto-dialog .fs-auto-actions {margin-top:auto;padding-top:6px;}
body.ingame .fs-auto-dialog .fs-auto-row {font-size:12px;line-height:1.4;gap:8px;}
body.ingame .fs-auto-dialog .fs-auto-title-banner span {font-size:15px;font-weight:700;}
.classic-auto-tabs {display:flex;gap:5px;margin:6px 0 7px;border-bottom:1px solid #806830;padding-bottom:5px;}
.classic-auto-tabs button {flex:1;padding:4px 6px;font-size:12px;white-space:nowrap;}
.classic-threshold {width:85px;min-width:45px;accent-color:#dc3333;}
.fs-auto-row:has([name="mpPotThreshold"]) .classic-threshold {accent-color:#269ce4;}
html body.ingame #app .fs-auto-row .classic-threshold {accent-color:#dc3333;}
html body.ingame #app .fs-auto-row:has([name="mpPotThreshold"]) .classic-threshold {accent-color:#269ce4;}
body.ingame { --hud-font: Tahoma, Arial, sans-serif; }
.game-shell :is(button,input,select,textarea,label,p,h2,h3,nav,small,strong),
body.ingame :is(dialog,.compact-panel), .game-shell .status-info {
  font-family: var(--hud-font); letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.ingame :is(dialog,.compact-panel) {
  color: #e9dfbd; background: linear-gradient(135deg,#242216f5,#0c0d0af7 65%);
  border: 1px solid #b39442; border-radius: 8px;
  box-shadow: 0 0 0 2px #10100d, inset 0 0 0 2px #514222, 0 8px 28px #0009;
  text-shadow: 0 1px 1px #000;
}
body.ingame :is(dialog,.compact-panel) :is(h2,h3) {
  color: #f3d680; font-weight: 700; line-height: 1.35;
}
body.ingame :is(dialog,.compact-panel) button {
  font-family: Tahoma,Arial,sans-serif; font-weight: 700;
  border: 1px solid #a28a45; border-radius: 4px;
  background: linear-gradient(#3b3320,#191b12); color: #e6d8a7;
  text-shadow: 0 1px 1px #000; line-height: 1.35;
}
body.ingame :is(dialog,.compact-panel) button:hover:not(:disabled) { border-color:#ffe18a; color:#fff0bd; }
body.ingame :is(dialog,.compact-panel) button[aria-selected="true"],
body.ingame :is(dialog,.compact-panel) button[aria-pressed="true"] {
  background: linear-gradient(#d99730,#804215); color:#fff6d3;
  border-color:#efd078; box-shadow:inset 0 1px 2px #ffecb566;
}
body.ingame :is(dialog,.compact-panel) :is(input,select,textarea) {
  background:#0c0e0b; border:1px solid #917335; border-radius:4px; color:#f0dfb2;
}
body.ingame :is(dialog,.compact-panel) input[type="range"] { accent-color:#dcaa42; }
.game-shell .status-info>strong { color:#f5ebd0; font-family:Tahoma,Arial,sans-serif; font-weight:700; }
.game-shell .status-info .bar { font-weight:700; }
body.ingame :is(dialog,.compact-panel) p { line-height:1.5; }
@media(max-width:600px) {
  body.ingame :is(dialog,.compact-panel) { max-width:calc(100vw - 16px); max-height:calc(100dvh - 24px); }
  body.ingame :is(dialog,.compact-panel) :is(button,input,select) { font-size:12px; }
}
/* Item names in Kỳ Trân Các remain clickable text without a button frame. */
body.ingame .ktc-window .ktc-good-info h3 button[data-shop-description],
body.ingame .ktc-window .ktc-good-info h3 button[data-shop-description]:hover{
  border:0;background:transparent;box-shadow:none;border-radius:0;
}
