/* R16 uses the approved Farmer and Cún Mầm identities in a compact emblem.
   The generated pixels contain no title: native HTML keeps every accent exact. */
#ui .brand.tvdb-brand-r16,
#tvdb-hud-layout-r1 .brand.tvdb-brand-r16,
.brand.tvdb-brand-r16 {
  box-sizing:border-box;width:224px;max-width:224px;min-height:64px;
  align-items:center;gap:7px;padding:2px 7px 2px 2px;
  border:1px solid #fff6df70;border-radius:13px;
  background:linear-gradient(150deg,#fffdf36e,#f3f7ed42);
  box-shadow:0 2px 7px #16362a16;
}
#ui .brand.tvdb-brand-r16 .brand-mark,
#tvdb-hud-layout-r1 .brand.tvdb-brand-r16 .brand-mark,
.brand.tvdb-brand-r16 .brand-mark {
  display:block;flex:none;width:68px;height:58px;
  background:transparent url('/api/runtime-static-r1.php?file=assets/game-brand-r16/art/logo-mascots-r16.webp&sha256=4e8730c6efd480ee7662e69b82a1d16f79419507b4ff4972c72aa9f20a5aa9eb') center/contain no-repeat;
  border:0;border-radius:0;box-shadow:none;transform:none;color:transparent;
}
.brand.tvdb-brand-r16 .brand-mark>svg {display:none!important;}
.brand.tvdb-brand-r16 .brand-copy {flex:1;min-width:0;}
#ui .brand.tvdb-brand-r16 h1,
#tvdb-hud-layout-r1 .brand.tvdb-brand-r16 h1,
.brand.tvdb-brand-r16 h1 {
  font-size:17px!important;font-weight:850;line-height:1.06;
  letter-spacing:0;margin:0;white-space:nowrap;color:#254d38!important;
  text-shadow:0 1px 1px #fffbea9c;
}
#ui .brand.tvdb-brand-r16 .brand-sub,
#tvdb-hud-layout-r1 .brand.tvdb-brand-r16 .brand-sub,
.brand.tvdb-brand-r16 .brand-sub {
  display:none;font-size:9px;line-height:1.3;margin-top:2px;letter-spacing:0;
  color:#365c43!important;text-shadow:0 1px 1px #fffbea80;
}
.brand.tvdb-brand-r16 .tvdb-server-status-r2 {
  max-width:100%;font-size:9px;line-height:1.15;margin-top:3px;padding:1px 4px;gap:3px;
}
.brand.tvdb-brand-r16 .brand-wordline {display:block;}
.brand.tvdb-brand-r16 h1 b {font:inherit;}
.brand.tvdb-brand-r16 .brand-title-garden {color:#347647;}
.brand.tvdb-brand-r16 .brand-title-kitchen {color:#a56a24;}
.tvdb-night-active-r7 .brand.tvdb-brand-r16 {
  background:linear-gradient(150deg,#153b359e,#16352c75);
  border-color:#e2e2be48;box-shadow:0 2px 8px #071f2626;
}
.tvdb-night-active-r7 #ui .brand.tvdb-brand-r16 h1,
.tvdb-night-active-r7 #tvdb-hud-layout-r1 .brand.tvdb-brand-r16 h1,
.tvdb-night-active-r7 .brand.tvdb-brand-r16 h1 {
  color:#fff4d8!important;text-shadow:0 1px 2px #061f26b3;
}
.tvdb-night-active-r7 #ui .brand.tvdb-brand-r16 .brand-sub,
.tvdb-night-active-r7 #tvdb-hud-layout-r1 .brand.tvdb-brand-r16 .brand-sub,
.tvdb-night-active-r7 .brand.tvdb-brand-r16 .brand-sub {
  color:#dce6c8!important;text-shadow:0 1px 2px #061f2699;
}
.tvdb-night-active-r7 .brand.tvdb-brand-r16 .brand-title-garden {color:#d9edb0;}
.tvdb-night-active-r7 .brand.tvdb-brand-r16 .brand-title-kitchen {color:#f7d789;}
/* Native mobile HUD hides branding to reserve room for the controls. */
@media(max-width:800px), (max-height:500px) {
  #ui .brand.tvdb-brand-r16,
  #tvdb-hud-layout-r1 .brand.tvdb-brand-r16,
  .brand.tvdb-brand-r16 {display:none;}
}
@media(min-width:801px) and (min-height:501px) and (max-height:600px) {
  #ui .brand.tvdb-brand-r16,
  #tvdb-hud-layout-r1 .brand.tvdb-brand-r16,
  .brand.tvdb-brand-r16 {width:211px;max-width:211px;min-height:52px;gap:5px;padding:2px 7px 2px 2px;}
  #ui .brand.tvdb-brand-r16 .brand-mark,
  #tvdb-hud-layout-r1 .brand.tvdb-brand-r16 .brand-mark,
  .brand.tvdb-brand-r16 .brand-mark {width:55px;height:46px;}
  #ui .brand.tvdb-brand-r16 h1,
  #tvdb-hud-layout-r1 .brand.tvdb-brand-r16 h1,
  .brand.tvdb-brand-r16 h1 {font-size:15px!important;}
}
/* Version button opens the optional read-only loading report. */
.tvdb-game-version-r16 {
  position:fixed;right:max(12px,env(safe-area-inset-right));
  bottom:max(12px,env(safe-area-inset-bottom));z-index:1220;
  pointer-events:auto!important;cursor:pointer;appearance:none;user-select:none;
  padding:3px 6px;border:1px solid #fff5d978;border-radius:6px;
  background:#fff8e6a6;color:#31563e;
  font:650 9px/1.2 system-ui,-apple-system,sans-serif;
  font-variant-numeric:tabular-nums;letter-spacing:.04em;
  text-shadow:0 1px 1px #fff7e999;
}
.tvdb-night-active-r7 .tvdb-game-version-r16 {
  background:#153b35a6;border-color:#e2e2be48;color:#f4edd6;
  text-shadow:0 1px 2px #061f2680;
}
/* On tablets the right thumb action sits beside the toolbar. */
@media(min-width:701px) and (max-width:1200px), (pointer:coarse) and (min-width:701px) {
  .tvdb-game-version-r16 {bottom:calc(146px + env(safe-area-inset-bottom));}
}
/* Native landscape controls top out at91px; the label clears them by13px. */
@media(min-width:701px) and (max-height:600px) {
  .tvdb-game-version-r16 {bottom:calc(104px + env(safe-area-inset-bottom));}
}
/* Portrait action top is199px + the controls safe bottom. Keep a9px gap. */
@media(max-width:700px) {
  .tvdb-game-version-r16 {right:max(10px,env(safe-area-inset-right));bottom:calc(208px + max(12px,env(safe-area-inset-bottom)));}
}
